Created
March 8, 2015 20:52
-
-
Save mjpearson/9aceb70812ffc162e80c to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env node | |
var pod = require('bip-pod-twilio'); | |
pod.init( | |
'twilio', | |
undefined, | |
{}, | |
function(msg, level) { | |
console[level](msg); | |
}, | |
{ | |
reqLiteral : false | |
} | |
); | |
pod.invoke( | |
'send_sms', | |
{ | |
config : { | |
from_phone : "{from phone number here}" | |
} | |
}, | |
{ | |
body : "Hello World", | |
to_phone : "{phone number here}" | |
}, | |
{ | |
auth : { | |
issuer_token : { | |
"username" : "{account sid here}", | |
"password" : "{account token here}" | |
} | |
} | |
}, | |
{}, | |
function(err, resp) { | |
console.log(arguments); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo's 'stateless' bipio pod