Skip to content

Instantly share code, notes, and snippets.

@britishboyindc
Created January 15, 2014 23:43
Show Gist options
  • Select an option

  • Save britishboyindc/8447044 to your computer and use it in GitHub Desktop.

Select an option

Save britishboyindc/8447044 to your computer and use it in GitHub Desktop.
Twilio Message List
This worked for me:
Map<String, String> params = new Map<String, String> ();
TwilioRestClient client = TwilioAPI.getDefaultClient();
TwilioMessageList als = new TwilioMessageList(client, params);
als.setRequestAccountSid('XXX'); //put Accound Sid here
for (TwilioMessage msg: als.getPageData()) {
system.debug('###' + msg.getProperty('body'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment