Skip to content

Instantly share code, notes, and snippets.

@ismaelc
Created June 8, 2013 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismaelc/5733270 to your computer and use it in GitHub Desktop.
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
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