如何从java应用程序发送短信 [英] How do I send sms from java application

查看:108
本文介绍了如何从java应用程序发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过JAVA网络应用程序从PC发送免费短信,以便快速使用一些免费网关进行最后一年的电子商务项目,任何人都可以告诉我哪里可以使用最简单的网关API。(如果可能,请建议任何程序) )迫切需要。非常感谢提前..

I need to send free sms from PC via JAVA web application for final year eCommerce project using some free gateway in quick time , Can anyone tell me where can a get the simplest gateway api to use.(Please suggest any program if possible) urgently required .Many thanks in advance..

推荐答案

Clickatell是一个短信网关,还提供api,如REST,http和https发送短信,下面是clickatell网站的网址:

https://www.clickatell.com/test-sms -gateway / [ ^ ]



他们还分享了如何使用api的示例,点击API& Scripts链接即可获得示例。例如,在http链接下面你可以使用java程序调用:





Clickatell is a SMS gateway and also provide api like REST , http and https to send the SMS, below is the url of the clickatell site :
https://www.clickatell.com/test-sms-gateway/[^]

They have also shared the example of how to use the api, click on API&Scripts link you will get the example. for example below http link you can call using java program:


 http://api.clickatell.com/http/sendmsg?api_id=xxxx&user=xxxx&password=xxxx&to=xxxx&text=xxxx
code





注意:您需要注册成为开发者才能获得10条免费短信。注册后,它将为您提供用户名,密码和appid。



NOTE: You need to signup as a developer to get the 10 free SMS. Upon signup it will provide you the username, password and appid.


在Google上搜索您所在国家/地区的免费短信服务提供商。
Search Google for free SMS providers in your country.


这篇关于如何从java应用程序发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆