Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kwhinnery/9863209 to your computer and use it in GitHub Desktop.
Save kwhinnery/9863209 to your computer and use it in GitHub Desktop.
var client = require('twilio')();
// Callback
client.listMessages({
to:'+16516668899'
}, function(err, data, next) {
if (err) {
console.error(err);
} else if (data.nextPageUri) {
next();
} else {
console.log('no more records for query');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment