Skip to content

Instantly share code, notes, and snippets.

@chrismatthieu
Created April 18, 2011 23:17
Show Gist options
  • Save chrismatthieu/926498 to your computer and use it in GitHub Desktop.
Save chrismatthieu/926498 to your computer and use it in GitHub Desktop.
Create a Tropo outbound call using Node.JS
var sys = require('sys');
var http = require('http');
var tropoapi = require('tropo-webapi');
var server = http.createServer(function (request, response) {
var tropo = new tropoapi.TropoWebAPI();
tropo.call("+14803194368", {
network: "VOICE"
});
tropo.say("Tag, you're it!!");
response.end(tropoapi.TropoJSON(tropo));
}).listen(8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment