Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created January 25, 2016 18:43
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 kwhinnery/ce361430b47531668a81 to your computer and use it in GitHub Desktop.
Save kwhinnery/ce361430b47531668a81 to your computer and use it in GitHub Desktop.
var Twilio = require('./index').Twilio;
var c = new Twilio();
c.api.messages.create({
to: '+16512080532',
from: process.env.TWILIO_NUMBER,
body: 'hey there'
}).then(function(data) {
console.log(data);
}).catch(function(e) {
console.log(e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment