中国网建
官网:中国网建
java 例子
public static void main(String[] args) {
//获得http链接对象
HttpClient httpClient = HttpClient.singleInstacne();
String url="http://utf8.api.smschinese.cn";
//中国网建账号
String Uid="xxxx0";
//中国网建秘钥
String Key="d41d8cd98f00bxxxxx";
//要发送的手机号
String smsMob="187xxxx";
//短信内容
String smsText="你好";
String message=null;
try {
message=httpClient.sendWithPost(url+"?Uid="+Uid+"&Key="+Key+"&smsMob="+smsMob+"&smsText="+smsText,"");
System.out.println(message);
} catch (IOException e) {
e.printStackTrace();
}
}
参考资料
https://blog.51cto.com/u_15437298/4696303
https://blog.csdn.net/weixin_34982726/article/details/114143251
更多学习
更多实时资讯,前沿技术,生活趣事。尽在【老马啸西风】
交流社群:[交流群信息](https://mp.weixin.qq.com/s/rkSvXxiiLGjl3S-ZOZCr0Q)