No release in over 3 years
Low commit activity in last 3 years
Consuming Globelabs SMS Dashboards API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0
 Project Readme

Build Status Test Coverage Maintainability

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.