Outbox::Msg91

Gem Version

MSG91 SMS API wrapper for Outbox.

Installation

Add this line to your application's Gemfile:

gem 'outbox-msg91'

And then execute:

$ bundle

Or install it yourself as:

$ gem install outbox-msg91

Usage

Configure Outbox to use Outbox::Msg91 as the default SMS client:

Outbox::Messages::SMS.default_client(
  :msg91,
  authkey = "xxxxxxxxxxxxxxxxxxx"
)

SMS messages will now use the Msg91 Ap for devlivery:

sms = Outbox::Messages::SMS.new(
  from: "ABCDEFG", <6 digit sender id>
  body: 'Hello World',
 )
sms.deliver('+15552224444')

Contributing

  1. Fork it ( https://github.com/nsox/outbox-msg1/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request