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