Created
June 8, 2013 00:12
-
-
Save ismaelc/5733270 to your computer and use it in GitHub Desktop.
node.js snippet showing SMS being received from Twilio. Full source code is at https://github.com/ismaelc/twilio-translator
This file contains 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
exports.receiveSMS = function (req, res) { | |
//TODO: Check if call is coming from Twilio | |
var message = req.body.Body; | |
var from = req.body.From; | |
var to = req.body.To; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment