Cellcom

Build Code Climate Coverage Status

Cellcom is a ruby wrapper around the Cellcom HTTP API Spec.

Installation

Add this line to your application's Gemfile:

gem 'cellcom'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cellcom

Usage

Cellcom::Configure do |config|
  config.clid = 12345
  config.gwid = 123
  config.pwd  = "256ea978c8f8752eaf87e7a"
end

Cellcom::Sms.new(m: 'my message', to: '32496233133', sid: '3228886991').deliver

If for some reason you want to send from multiple accounts:

credentials_hash = {
  clid: 12345,
  gwid: 123,
  pwd : "256ea978c8f8752eaf87e7a"
}
Cellcom::Client.new(credentials_hash).deliver(m: 'my message', to: '32496233133', sid: '3228886991')

# or

sms = Cellcom::Sms.new(m: 'my message', to: '32496233133', sid: '3228886991')
client = Cellcom::Client.new(clid: 12345, gwid: 123, pwd : "256ea978c8f8752eaf87e7a")
sms.deliver(client)

Contributing

  1. Fork it ( https://github.com/gregory/cellcom/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