赞
踩
//接口类型:互亿无线语音通知接口。 //账户注册:请通过该地址开通账户hhttp://user.ihuyi.com/?jmzFP2 //注意事项: //(1)调试期间,请仔细阅读接口文档; //(2)请使用APIID(查看APIID请登录用户中心->语音通知->帐户及签名设置->APIID)及 APIkey来调用接口; //(3)该代码仅供接入互亿无线语音通知接口参考使用,客户可根据实际需要自行编写;
- public class sendvoice {
-
- private static String Url = "http://api.vm.ihuyi.com/webservice/voice.php?method=Submit";
-
- public static void main(String [] args) {
-
- HttpClient client = new HttpClient();
- PostMethod method = new PostMethod(Url);
-
- //client.getParams().setContentCharset("GBK");
- client.getParams().setContentCharset("UTF-8");
- method.setRequestHeader("ContentType","application/x-www-form-urlencoded;charset=UTF-8");
-
- NameValuePair[] data = {//提
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。