Skip to content

Instantly share code, notes, and snippets.

@BadgerCode
Created September 4, 2015 14:16
Show Gist options
  • Save BadgerCode/f11d0814860d5d0d2222 to your computer and use it in GitHub Desktop.
Save BadgerCode/f11d0814860d5d0d2222 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/
Dim accountReference = "EX0000123"
Dim messagingService = New MessagingService("Username", "Password")
Dim multipleMessages = New VoiceMessageCollection
'Important! Do not forget to set the acount refence 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