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 |
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 sentService = new SentService("Username", "Password") | |
Dim sentMessages = sentService.GetMessages(pageNumber, pageSize) | |
For Each message As SentMessage In sentMessages.Messages | |
Console.WriteLine("Message Id: {0}\nMessage Status: {1}\nMessage: {2}\n", message.Id.ToString, message.Status, message.Body.BodyText) | |
Next |
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
Const pageNumber = 1 | |
Const pageSize = 20 | |
Dim credentials = New EsendexCredentials("Username", "Password") | |
Dim inboxService = new InboxService(credentials) | |
Dim messageBodyService = new MessageBodyService(credentials) | |
Dim receivedMessages = inboxService.GetMessages(pageNumber, pageSize) |
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 accountReference = "EX0000123" | |
Dim messagingService = New MessagingService("Username", "Password") | |
Dim multipleMessages = New SmsMessageCollection | |
'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 SmsMessage("447123456789", "Message Body", accountReference)) | |
multipleMessages.Items.Add(New SmsMessage("447456789123", "Message Body", accountReference)) |
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 accountReference = "EX0000123" | |
Dim messagingService = New MessagingService("Username", "Password") | |
Dim singleMessage = New SmsMessage("447123456789", "Message Body", accountReference) | |
messagingService.SendMessage(singleMessage) |
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
UserPassword userPassword = new UserPassword("YourUsername","YourPassword"); | |
BasicServiceFactory serviceFactory = ServiceFactory.createBasicAuthenticatingFactory(userPassword); | |
MessagingService messagingService = serviceFactory.getMessagingService(); | |
SmsMessageRequest message = new SmsMessageRequest("RecipientNumber", "YourMessage"); | |
MessageResultResponse response; | |
try{ | |
response = messagingService.sendMessage("YourAccountReference", message); | |
}catch(Exception e){ | |
e.getStackTrace(); |
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
int pageNumber = 1; | |
int pageSize = 20; | |
UserPassword userPassword = new UserPassword("YourUsername","YourPassword"); | |
BasicServiceFactory serviceFactory = ServiceFactory.createBasicAuthenticatingFactory(userPassword); | |
InboxService inboxService = serviceFactory.getInboxService(); | |
InboxMessageCollectionResponse inboxMessages; | |
try{ | |
inboxMessages = inboxService.getMessages(pageNumber, pageSize); |
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
int pageNumber = 1; | |
int pageSize = 20; | |
UserPassword userPassword = new UserPassword("YourUsername","YourPassword"); | |
BasicServiceFactory serviceFactory = ServiceFactory.createBasicAuthenticatingFactory(userPassword); | |
SentService sentService = serviceFactory.getSentService(); | |
SentMessageCollectionResponse sentMessages; | |
try{ | |
sentMessages = sentService.getMessages(pageNumber, pageSize); |
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
php phing-latest.phar check-access | |
Buildfile: /home/developer/esendex-php-sdk/build.xml | |
EsendexSDK > install_dependencies: | |
EsendexSDK > check-access: | |
Esendex Username ? [email protected] | |
Esendex Password ? secret |
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
php phing-latest.phar |