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
# Using global transport (quick and dirty)
MoteSMS.transport = MoteSMS::MobileTechnicsTransport.new 'https://endpoint.com:1234', 'username', 'password'
sms = MoteSMS::Message.new do
to '+41 79 111 22 33'
from 'ARUBYGEM'
body 'Hello world, you know.'
end
sms.deliver
# Using client instance
transport = MoteSMS::MobileTechnicsTransport.new 'https://endpoint.com:1234', 'username', 'password'
sms = MoteSMS::Message.new do
# create message
end
sms.deliver(transport: transport)
- 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