Skip to content

Instantly share code, notes, and snippets.

@mjpearson
Created March 8, 2015 20:52
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 mjpearson/9aceb70812ffc162e80c to your computer and use it in GitHub Desktop.
Save mjpearson/9aceb70812ffc162e80c to your computer and use it in GitHub Desktop.
#!/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);
}
);
@mjpearson
Copy link
Author

Demo's 'stateless' bipio pod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment