Skip to content

Instantly share code, notes, and snippets.

@EsendexDev
Created November 6, 2013 11:28
Show Gist options
  • Save EsendexDev/7334603 to your computer and use it in GitHub Desktop.
Save EsendexDev/7334603 to your computer and use it in GitHub Desktop.
Getting Inbox messages using the Esendex PHP SDK - Full details here: http://developers.esendex.com/
$authentication = new \Esendex\Authentication\LoginAuthentication(
"EX000000", // Your Esendex Account Reference
"[email protected]", // Your login email address
"password" // Your password
);
$service = new \Esendex\InboxService($authentication);
$result = $service->latest();
print "Total Inbox Messages: {$result->totalCount()}";
print "Fetched: {$result->count()}";
foreach ($result as $message) {
print "Message from: {$message->originator()}, {$message->summary()}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment