开发者

Sending SMS using Way2sms on rails

开发者 https://www.devze.com 2022-12-22 19:07 出处:网络
Can any one hel开发者_开发技巧p me to send sms using way2sms api by means of rails application.

Can any one hel开发者_开发技巧p me to send sms using way2sms api by means of rails application.

Thanks


I have created a free open source SMS API called AlfaSMS API for way2sms,160by2.com,fullonsms. It is available in many programming languages like PHP,VB,C++,c#,Python etc.You can download it from http://www.alfredfrancis.in/alfasms-api/


I have developed an API that anyone can use. Check it out here.

You can use the web page I created or you can use the API. For example, your application can directly forward the request to:

http://ubaid.tk/sms/sms.aspx?uid=99999xxxxx&pwd=12345&msg=YOUR_SMS_MESSAGE&phone=9996669990&provider=way2sms

The different providers are way2sms, fullonsms, smsinside and tezsms.

Works 100%, all the time. :)

Edit: As of 2014, the service is stopped since it violates the TOS of most of these providers.

Cheers.


There is a ruby gem that I wrote based on Ubaid's API. You can find it here. You can use it in any ruby or rails project as long as you are running a version of ruby >= 1.9.

require 'chagol'
texter = Chagol::SmsSender("9876543210","password","way2sms")
texter.send("9968154700", "Chagol Rocks")

Disclaimer, I am the author of this gem.

0

精彩评论

暂无评论...
验证码 换一张
取 消