tropo_message
tropo_message is a tiny gem that simplifies sending messages using Tropo
Usage
Create a new SMS ready for sending
= Tropo::Message.new
.token = "your_token"
.to = "13118374750"
.text = "message to send"
Send the message to listener
post("http://api.tropo.com/1.0/sessions", .request_xml)
See also: http://blog.tropo.com/2010/09/10/how-to-sending-an-sms-using-webapi
Receive message and respond to Tropo (inside your listener)
tropo_session = Tropo::Generator.parse(raw_json)
= Tropo::Message.new(tropo_session)
text = .text
tropo = Tropo::Generator.new
tropo.(.response_params) do
say :value => text
end
tropo.response
See also: http://github.com/voxeo/tropo-webapi-ruby http://blog.tropo.com/2010/09/10/how-to-sending-an-sms-using-webapi
More documentation?
Check out the source. It's tiny and easy to read.
Installation
gem install
require 'tropo_message'
Copyright
Copyright (c) 2010 David Wilkie. See LICENSE for details.