require 'tropo-webapi-ruby'
require 'sinatra'
post '/index.json' do
t = Tropo::Generator.new
t.call(:to => "+14155550100")
t.say(:value => "http://www.phono.com/audio/troporocks.mp3")
t.response
end
var http = require('http');
var tropo_webapi = require('tropo-webapi');
var server = http.createServer(function (request, response) {
var tropo = new TropoWebAPI();
tropo.call("+14155550100")
tropo.say("http://www.phono.com/audio/troporocks.mp3");
response.end(TropoJSON(tropo));
}).listen(8000);
<?php
require 'tropo.class.php';
$tropo = new Tropo();
$tropo->call("+14155550100");
$tropo->say("http://www.phono.com/audio/troporocks.mp3");
$tropo->RenderJson();
?>
from itty import *
from tropo import Tropo
@post('/index.json')
def index(request):
t = Tropo()
t.call("+14155550100")
t.say("http://www.phono.com/audio/troporocks.mp3")
return t.RenderJson()
run_itty(server='wsgiref', host='0.0.0.0', port=8888)
{"tropo":[
{"call":[{"to":"+14155550100"}]},
{"say":[{"value":"http://www.phono.com/audio/troporocks.mp3"}]}
]}
require 'tropo-webapi-ruby'
require 'sinatra'
post '/index.json' do
t = Tropo::Generator.new
t.call(:to => "+14155550100")
t.say(:value => "http://www.phono.com/audio/troporocks.mp3 http://www.phono.com/audio/holdmusic.mp3")
t.response
end
var http = require('http');
var tropo_webapi = require('tropo-webapi');
var server = http.createServer(function (request, response) {
var tropo = new TropoWebAPI();
tropo.call("+14155550100")
tropo.say("http://www.phono.com/audio/troporocks.mp3 http://www.phono.com/audio/holdmusic.mp3");
response.end(TropoJSON(tropo));
}).listen(8000);
<?php
require 'tropo.class.php';
$tropo = new Tropo();
$tropo->call("+14155550100");
$tropo->say("http://www.phono.com/audio/troporocks.mp3 http://www.phono.com/audio/holdmusic.mp3");
$tropo->RenderJson();
?>
from itty import *
from tropo import Tropo
@post('/index.json')
def index(request):
t = Tropo()
t.call("+14155550100")
t.say("http://www.phono.com/audio/troporocks.mp3 http://www.phono.com/audio/holdmusic.mp3")
return t.RenderJson()
run_itty(server='wsgiref', host='0.0.0.0', port=8888)
{"tropo":[
{"call":[
{"to":"+14155550100"}
]},
{"say":[
{"value":"http://www.phono.com/audio/troporocks.mp3 http://www.phono.com/audio/holdmusic.mp3"}
]}
]}
require 'tropo-webapi-ruby'
require 'sinatra'
post '/index.json' do
t = Tropo::Generator.new
t.call(:to => "+14155550100")
t.say(:value => "http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3")
t.response
end
var http = require('http');
var tropo_webapi = require('tropo-webapi');
var server = http.createServer(function (request, response) {
var tropo = new TropoWebAPI();
tropo.call("+14155550100")
tropo.say("http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3");
response.end(TropoJSON(tropo));
}).listen(8000);
<?php
require 'tropo.class.php';
$tropo = new Tropo();
$tropo->call("+14155550100");
$tropo->say("http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3");
$tropo->RenderJson();
?>
from itty import *
from tropo import Tropo
@post('/index.json')
def index(request):
t = Tropo()
t.call("+14155550100")
t.say("http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3")
return t.RenderJson()
run_itty(server='wsgiref', host='0.0.0.0', port=8888)
{"tropo":[
{"call":[
{"to":"+14155550100"}
]},
{"say":[
{"value":"http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3"}
]}
]}