A Ruby Gem to communicate with Msg91 Api to send Messages
Add this line to your application's Gemfile:
gem 'msg91ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install msg91ruby
require 'msg91ruby'
api = Msg91ruby::API.new(auth_key,senderid)
api.send(mobileno, message, route)
eg:
require 'msg91ruby'
api = Msg91ruby::API.new("2552515255255255252","113388")
api.send(1234567890, "Test Message", 1)
api.send([1234567890,9012345678], "Test Message", 1)
you can find your Auth-key here: http://help.msg91.com/article/177-where-can-i-find-my-authentication-key
You can generate a Yaml file to store the Sms Settings required for your application with following command
rails g msg91ruby:install
You can create your account on MSG91 by simply singing up here: https://msg91.com/signup/msg91ruby
If you are an startup company, you can avail sms credits for your Startup app. For more details visit: https://msg91.com/startups/
- Fork it ( https://github.com/deeproot/msg91ruby/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