Skip to content

aantix/sendblue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A ruby client for SendBlue

Resources

License

Stars

Watchers

Forks

Packages

No packages published