Giter VIP home page Giter VIP logo

mote_sms's Introduction

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

mote_sms's People

Contributors

ewangler avatar github-actions[bot] avatar lgavillet avatar lwe avatar philiplehmann avatar sled avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mote_sms's Issues

Deprecation Warning `#deliver`

Just noticed in the log:

DEPRECATION WARNING:#deliveris deprecated and will be removed in Rails 5. Use#deliver_nowto deliver immediately or#deliver_laterto deliver through Active Job. (called from deliver at /Users/xxx/.rvm/gems/ruby-2.2.2/bundler/gems/mote_sms-bf78de17e24a/lib/mote_sms/transports/action_mailer_transport.rb:45)

Review HttpClient

Hey @lgavillet can you please review the following changes:

c8b652a...master

  • Removal of SslTransport
  • Introduction of HttpClient class instead, which is a small wrapper
  • Handles overriding of fingerprint SHA1 using ENV changes, so we don't need to release a new gem
  • Use SHA1 as fingerprint
  • How to handle overriding or adding CA certificates using ENV too, any proposals?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.