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.
Add this line to your application's Gemfile:
gem 'sendblue'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sendblue
# 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)
To be notified when a new message is received for a contact, specify a callback URL at https://sendblue.co/account.
rspec spec/sendblue_spec.rb