简体   繁体   English

使用PHP API在美国发送短信

[英]Send SMS in USA with a PHP API

Where I can find an enterprice API(PHP) to send SMS in USA? 在哪里可以找到Enterprice API(PHP)在美国发送SMS?

I am looking for an API that will be easy to use, also allows me view reports of sended SMS, that also has documentation and examples to how manage it. 我正在寻找一个易于使用的API,它还允许我查看已发送SMS的报告,其中还包含有关如何管理它的文档和示例。

http://www.twilio.com/是一项很好的服务,并且具有PHP库http://www.twilio.com/docs/libraries/

You can take a look to the open source projects on PHP script at 您可以在以下位置查看有关PHP脚本的开源项目:

http://www.aldeaglobal.net/callserver/ http://www.aldeaglobal.net/callserver/

and another one is this: 另一个是:

http://www.simong.net/finarea/ http://www.simong.net/finarea/

They work on more than 20 providers, and the APIs are quite similar. 他们在20多个提供程序上工作,并且API非常相似。

A comparision matrix for all prices can be found here: 可以在这里找到所有价格的比较矩阵:

hXXp//progx.ch/home-voip-smsbetamax-3-1-1.html (replace hXXp by http: sorry I'm new and I need more reputation to post more than 2 links maybe you can vote me ;-) hXXp//progx.ch/home-voip-smsbetamax-3-1-1.html (用http替换hXXp:对不起,我是新手,我需要更多声誉才能发布2个以上链接,也许您可​​以投票给我;-)

All of these Providers are compatible with the two PHP scripts above. 所有这些提供程序都与上面的两个PHP脚本兼容。

Most of those providers also have an official API which is in most of the cases here: 这些提供商中的大多数还具有正式的API,在大多数情况下,此处:

https://provider_name.com/myaccount/sendsms.php?username=XXXX&password=XXXX&from=00XXXX&to=00XXXX&text=XXXX

Just replace the XXXX and open it with a fsockopen using the ssl:// or https:// 只需替换XXXX并使用ssl://或https://使用fsockopen打开它即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM