Project

sendblue

0.0
No release in over 3 years
Low commit activity in last 3 years
Allows for the sending of messages through the SendBlue service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 13
~> 3.0
~> 6.0
~> 3.8
 Project Readme

Sendblue

This is a client library for the SendBlue message service.

SendBlue allows you to send iMessages programmatically. The messages show up blue as if they were sent from an iPhone.

Installation

Add this line to your application's Gemfile:

gem 'sendblue'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sendblue

Usage

# Look up your API key/secret 
#  https://sendblue.co/account

client   = Sendblue::Sendblue.new(<key>, <secret>)

message  = client.send_message(<phone number>, <message>)
status   = client.message_status(message.message_handle)

Receiving Messages

To be notified when a new message is received for a contact, specify a callback URL at https://sendblue.co/account.

Running the Tests

rspec spec/sendblue_spec.rb