Unofficial ruby adapter for MobileTechnics HTTP Bulk SMS API. Tries to mimick mail API, so users can switch e.g. ActionMailer with this SMS provider. Requires Ruby 1.9.
Add this line to your application's Gemfile:
gem 'mote_sms'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mote_sms
# Transport configuration
MoteSMS.transport = MoteSMS::MobileTechnicsTransport.new 'https://endpoint.com:1234', 'username', 'password'
# Create a message and deliver it
sms = MoteSMS::Message.new do
to '+41 79 111 22 33'
from 'ARUBYGEM'
body 'Hello world, you know.'
end
sms.deliver_now # OR: deliver_later
Include the gem 'twilio-ruby in your Gemfile'
# Transport configuration
MoteSMS.transport = MoteSMS::TwilioTransport.new 'twilio sid', 'twilio token', 'from number'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request