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