Project

mote_sms

0.0
Low commit activity in last 3 years
No release in over a year
Unofficial ruby adapter for Swisscom and MobileTechnics Bulk SMS APIs. Tries to mimick mail API, so users can switch e.g. ActionMailer with this SMS provider.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3.6
>= 6.1
~> 3.14

Runtime

 Project Readme

MobileTechnics SMS API Client

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 3+.

Installation

Add this line to your application's Gemfile:

gem 'mote_sms'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mote_sms

Usage

# 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

TwilioTransport

Include the gem 'twilio-ruby in your Gemfile'

# Transport configuration
MoteSMS.transport = MoteSMS::TwilioTransport.new 'twilio sid', 'twilio token', 'from number'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request