Created
September 4, 2015 14:55
-
-
Save EsendexDev/c6d0ca8667ac80677e7c to your computer and use it in GitHub Desktop.
Getting message body texts using the Esendex .Net SDK for Visual Basic. Full details here: http://developers.esendex.com/
This file contains hidden or 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
| Dim pageNumber = 1 | |
| Dim pageSize = 20 | |
| Dim credentials = new EsendexCredentials("Username", "Password") | |
| Dim sentService = New SentService(credentials) | |
| Dim messageBodyService = New MessageBodyService(credentials) | |
| Dim sentMessages = sentService.GetMessages(pageNumber, pageSize) | |
| For Each message As SentMessage In sentMessages.Messages | |
| messageBodyService.LoadBodyText(message.Body) | |
| Console.WriteLine("Message Id: {0}\nMessage: {1}\n", message.Id.ToString, message.Body.BodyText) | |
| Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment