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
{ | |
"require": { | |
"esendex/sdk": "3.0.*" | |
} | |
} |
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
require_once 'path/to/vendor/autoload.php'; |
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
pear config-set auto_discover 1 | |
pear install esendex.github.com/pear/Esendex |
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
require_once 'Esendex/autoload.php'; |
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
require_once 'path/to/downloaded/Esendex/autoload.php'; |
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
//Create an SMS message request with phone number and message body | |
SmsMessageRequest msg = new SmsMessageRequest("447879000000", "my body text"); | |
//Add optional fields to the message | |
msg.setBody("Test Message from SendMessageSample"); | |
msg.setFrom("447879000000"); | |
msg.setValidity(5); | |
//Create a collection to hold the single message to send from specified account | |
SmsMessageCollectionRequest req = new SmsMessageCollectionRequest("myAccountReference", msg); |
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
var messagingService = new MessagingService("username", "password"); | |
messagingService.SendMessage(new SmsMessage("07123456789", "Hello!", "accountRef")); |
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
const int pageNumber = 1; | |
const int pageSize = 20; | |
var credentials = new EsendexCredentials("Username", "Password"); | |
var inboxService = new InboxService(credentials); | |
var messageBodyService = new MessageBodyService(credentials); | |
var receivedMessages = inboxService.GetMessages(pageNumber, pageSize); |
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
const int pageNumber = 1; | |
const int pageSize = 20; | |
var sentService = new SentService(USERNAME, PASSWORD); | |
var sentMessages = sentService.GetMessages(pageNumber, pageSize); |
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
gem install esendex |
OlderNewer