SmsRu
Send SMS via sms.ru service, including support for "stronger auth" API
Installation
Add this line to your application's Gemfile:
gem 'sms_ru'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sms_ru
Usage
Usage from console
Write file .sms_ru_settings in you home dir with contents:
api_id = aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
from = 123456789
where aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee is you api_id key; 123456789 - sender of sms. It will show in sms. Your number or any allowed alias on service.
After that usage as simple as
sms 123456789 'my text message'
where 12345689 - receipient of sms
Usage in source code
sms = SmsRu::SMS.new(:api_id => "aaaaaaaaaa-bbbb-ccccc-ddddddd")
sms.send(:to => "123123123", :from => "321321321", :text => "Hello world")
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request