Last active
November 4, 2015 10:38
-
-
Save EsendexDev/f9bfec4047cdf05d4147 to your computer and use it in GitHub Desktop.
Creating and sending multiple voice messages using the Esendex .Net SDK for Visual Basic. 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
Dim accountReference = "EX0000123" | |
Dim messagingService = New MessagingService("Username", "Password") | |
Dim multipleMessages = New VoiceMessageCollection | |
'Important! Do not forget to set the account reference on the messages collection. | |
'This should be the same as the account reference for the individual messages | |
multipleMessages.AccountReference = accountReference | |
multipleMessages.Items.Add(New VoiceMessage("447123456789", "Message Body", accountReference)) | |
multipleMessages.Items.Add(New VoiceMessage("447456789123", "Message Body", accountReference)) | |
multipleMessages.Items.Add(New VoiceMessage("447789123456", "Message Body", accountReference)) | |
messagingService.SendMessages(multipleMessages) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment