-
-
Save Codesleuth/6493660 to your computer and use it in GitHub Desktop.
Getting sent messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using com.esendex.sdk.sent; | |
... | |
const int pageNumber = 1; | |
const int pageSize = 20; | |
var sentService = new SentService(USERNAME, PASSWORD); | |
try | |
{ | |
var sentMessages = sentService.GetMessages(pageNumber, pageSize); | |
foreach (var item in sentMessages.Messages) | |
{ | |
Console.WriteLine("Message Id:{0}\nMessage:{1}\n\n", item.Id, item.Summary); | |
} | |
} | |
catch (WebException ex) | |
{ | |
Console.Write(ex.Message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment