Created
April 18, 2011 23:17
-
-
Save chrismatthieu/926498 to your computer and use it in GitHub Desktop.
Create a Tropo outbound call using Node.JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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