Skip to content

Instantly share code, notes, and snippets.

@EsendexDev
Last active August 29, 2015 14:10
Show Gist options
  • Save EsendexDev/531de979cfece1d62b3b to your computer and use it in GitHub Desktop.
Save EsendexDev/531de979cfece1d62b3b to your computer and use it in GitHub Desktop.
int pageNumber = 1;
int pageSize = 20;
UserPassword userPassword = new UserPassword("YourUsername","YourPassword");
BasicServiceFactory serviceFactory = ServiceFactory.createBasicAuthenticatingFactory(userPassword);
InboxService inboxService = serviceFactory.getInboxService();
InboxMessageCollectionResponse inboxMessages;
try{
inboxMessages = inboxService.getMessages(pageNumber, pageSize);
}catch(Exception e){
e.getStackTrace();
}
@or-shachar
Copy link

Can you please elaborate more about how to extract a message from those actions.
A message is something that has those fields:

  • from (phone number)
  • to (phone number)
  • received-time (timestamp)
  • content (text)

If you can please add few more lines to show how you, for instance, print those stuff out.

Thanks!

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