Globe Labs Sms Logger
It's a simple logger which consumes the Globelabs SMS Dashboard API(See Globelabs SMS Dasbhoard).
Requirements
Ruby 2.x.x
Installation
Add this line to your application's Gemfile:
gem 'globelabs_sms_logger'
And then execute:
$ bundle
Or install it yourself as:
$ gem install globelabs_sms_logger
Then generate initializer:
$ rails g globelabs_sms_logger:install initializer
then edit the file config/initializers/globelabs_sms_logger.rb
Usage
Construct a GlobelabsSms::Logger
object and use the #send
method to send a request to Globelabs Dashboard. Example:
require 'globelabs_sms_logger'
logger = GlobelabsSms::Logger.new
logger.send(address: '917XXXXXXX', content: 'Cheers!')
# You can also speicfy the api_token & app_identifier as args
# Example:
logger = GlobelabsSms::Logger.new(api_token: ENV['API_TOKEN']', identifier: ENV['IDENTIFIER'])
logger.send(address: '917XXXXXXX', content: 'Hello!')
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/denmarkmeralpis/globelabs_sms_logger. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Code of Conduct
Everyone interacting in the GlobelabsSmsLogger project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.