No release in over 3 years
Low commit activity in last 3 years
Ruby wrapper for the engageSPARK API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0
~> 3.0
~> 5.0
~> 3.8

Runtime

 Project Readme

EngagesparkClient

Build Status

Ruby wrapper for the engageSPARK API.

Installation

Add this line to your application's Gemfile:

gem 'engagespark_client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install engagespark_client

Usage

client = EngagesparkClient.new(token: "YOUR-TOKEN", org_id: 321)

response = client.send_sms(
  to: "639181234567",
  message: "Hello, world!",
)

response.error # an error message in the response, if any
response.message_id # "SMS20200124T085255-123-4567"
response.estimate_parts # 1
response.estimate_micro # 20000
response.estimate # "0.02"
response.delivery_deadline # "2020-01-25T08:52:55.75319741Z"
response.contact_id # 0
response.to # "639181234567"
response.message # "Hello, world!"

See spec/acceptance for usage.

Development

  • cp spec/config{.sample,}.yml
  • Edit spec/config.yml with your own settings
  • Make changes
  • rspec spec

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/bloom-solutions/engagespark_client-ruby. 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.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the EngagesparkClient project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.