Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Ruby gem for interaction with the SMSified API
branch: master
Failed to load latest commit information.
examples fixed examples and spec to reflect API update
lib Ruby 2.0 compatibility
spec send accept json by default
.document Initial project commit
.gitignore Initial project commit
.rspec Initial project commit
Gemfile Initial project commit
Gemfile.lock Initial project commit
LICENSE.txt
README.md IncomingMessage class will now create a Time object for you for the d…
RELEASE.txt Update commiters, changelog, and version bump
Rakefile fixed rake file
VERSION version bump again ;)
smsified.gemspec Regenerate gemspec for version 0.1.8

README.md

smsified

SMSified is a simple API for sending and receiving text messages using regular phone numbers or short codes. SMSified uses a simple REST interface based on the GSMA OneAPI standard and is backed by Voxeo - the worlds largest communications cloud. Ruby lib for consuming the SMSified OneAPI.

This is a Ruby gem for consuming the SMSified OneAPI.

Installation

gem install smsified

Example

Send an SMS:

require 'rubygems'
require 'smsified'
oneapi = Smsified::OneAPI.new(:username => 'user', :password => 'bug.fungus24')
oneapi.send_sms :address => '14155551212', :message => 'Hi there!', :sender_address => '13035551212'

Find a subscription:

require 'rubygems'
require 'smsified'
subscriptions = Smsified::Subscriptions.new(:username => 'user', :password => 'bug.fungus24')
subscriptions.inbound_subscriptions('17177455076')

Parse the JSON for a callback Incoming Message:

require 'rubygems'
require 'smsified'
# Also require your favorite web framework such as Rails or Sinatra
incoming_message = Smsified::IncomingMessage.new json_body
puts incoming_message.date_time           # Wed May 11 18:05:54 UTC 2011
puts incoming_message.destination_address # '16575550100'
puts incoming_message.message             # 'Inbound test'
puts incoming_message.message_id          # 'ef795d3dac56a62fef3ff1852b0c123a'
puts incoming_message.sender_address      # '14075550100'

Documentation

May be found at http://smsified.github.com/smsified-ruby & http://smsified.com.

License

MIT - See LICENSE.txt

Something went wrong with that request. Please try again.