Skip to content

@jasonmaster /troposmstest
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
require 'rubygems'
require 'tropo-webapi-ruby'
require 'sinatra'
post '/index_sms.json' do
v = Tropo::Generator.parse request.env["rack.input"].read
to = "+" + v[:session][:parameters][:numbertodial]
msg = v[:session][:parameters][:msg]
t = Tropo::Generator.new
t.call(:to => to, :network => "SMS")
t.say(:value => "" + msg + "")
t.response
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.