Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created November 25, 2015 00:58
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/e38c324ac08e1954be97 to your computer and use it in GitHub Desktop.
Save kwhinnery/e38c324ac08e1954be97 to your computer and use it in GitHub Desktop.
var accountSid = 'ACCOUNT_SID';
var authToken = 'AUTH_TOKEN';
var IpMessagingClient = require('twilio').IpMessagingClient
var client = new IpMessagingClient(accountSid, authToken);
var service = client.services('SERVICE_SID');
service.channels.list().then(function(response) {
console.log(response);
}).fail(function(error) {
console.log(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment