After working on sending SMS in php
via way2sms.com, recently I thought of writing the same in ruby. That resulted in the creation of sendsms
gem. Even though I wrote enough code for the functionality, currently it lacks a proper documentation
. So I thought of writing a "How to use sendsms gem"
. I am planning to do a better document and mean while I hope this will help you to use this gem. There are lot more work to do in the gem for easy use. Currently this gem can be used to send sms in India
only. The code is open at github
. You can report the issue and feature requests also on github issues
The simple steps to use this gem is
- Install the gem
- Require sendsms class
- Instantiate sendsms class
- call the login instance method
- call send or send_to_many instance method to send the SMS
- call the logout instance method
The installation of the sendsms gem can gone as simple as the other gems in rubygems.orgSending individual SMS
The send method
is used to send individual SMS.Sending Group SMS
You need to pass the msisdns as a semicolon seperated string to send group sms. The send_to_many method
is used for Group SMS. Future plans
The current checklist for the future are
- Remove the explicit call for login and logout with the use of autologin and auto logout flags.
- Proper documentation with yard.
Please drop a word if you think my work worth, and it may help for betterment of gem.