require 'tropo-webapi-ruby'
require 'sinatra'
post '/index.json' do
t = Tropo::Generator.new
t.call(:to => "tropocloud2", :network => "AIM")
t.say(:value => "Tag, you're it!")
t.response
end
var sys = require('sys');
var http = require('http');
var tropo_webapi = require('tropo-webapi');
var server = http.createServer(function (request, response) {
var tropo = new TropoWebAPI();
//to, answerOnMedia, channel, from, headers, name, network, recording, required, timeout
tropo.call("tropocloud2", null, null, null, null, null, "AIM", null, null, null);
tropo.say("Tag, you're it!!");
response.end(TropoJSON(tropo));
}).listen(8000);
<?php
require 'tropo.class.php';
$tropo = new Tropo();
$tropo->call("tropocloud2", array('network'=>'AIM'));
$tropo->say("Tag, you're it!");
$tropo->RenderJson();
?>
from itty import *
from tropo import Tropo
@post('/index.json')
def index(request):
t = Tropo()
t.call(to="tropocloud2", network = "AIM")
t.say("Tag, you're it!")
return t.RenderJson()
run_itty(server='wsgiref', host='0.0.0.0', port=8888)
{"tropo":[
{"call":{
"to":"tropocloud2",
"network":"AIM"
}
},
{"say":{"value":"Tag, you're it!"}}
]}