Send and receive SMS with Ruby (for Czech Republic)
Add this line to your application's Gemfile:
gem 'smsconnect'
And then execute:
$ bundle
Or install it yourself as:
$ gem install smsconnect
require 'smsconnect'
sms = Smsconnect::Smsconnect.new({'login'=>'<your_login>', 'password' => '<your_password>'})
puts sms.inbox
simple usage:
require 'smsconnect'
sms = Smsconnect::Smsconnect.new({'login'=>'<your_login>', 'password' => '<your_password>'})
puts sms.send('<phone_number>', '<text_sms>')
or you can use other optional params:
require 'smsconnect'
sms = Smsconnect::Smsconnect.new({'login'=>'<your_login>', 'password' => '<your_password>'})
puts sms.send('<phone_number>', '<text_sms>', '<when>', '<delivery_report>', '<sender_id>', '<sender_phone>', '<user_id>', '<data_code>', '<answer_mail>', '<delivery_mail>')
- Fork it ( https://github.com/pryznar/smsconnect/fork )
- 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 a new Pull Request