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
See: https://github.com/esendex/esendex-node-sdk |
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
client := esendex.New("username", "password") | |
messages, err := client.Sent() |
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
client := esendex.New("username", "password") | |
response, _ := client.Sent() | |
for _, message := range response.Messages { | |
body, _ := client.Body(message) | |
fmt.Printf("MessageID: %s\nMessage: %s\n\n", message.ID, body.Text) | |
} |
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
client := esendex.New("username", "password") | |
messages, err := client.Received() |
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
client := esendex.New("username", "password").Account("accountRef") | |
client.Send([]esendex.Message{ | |
{MessageType: "Voice", To: "07123456789", Body: "Hello!"}, | |
}) |
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
client := esendex.New("username", "password").Account("accountRef") | |
client.Send([]esendex.Message{ | |
{To: "07123456789", Body: "Hello!"}, | |
{To: "07987654321", Body: "Goodbye!"}, | |
}) |
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
client := esendex.New("username", "password").Account("accountRef") | |
scheduleTime := time.Now().UTC().Add(6 * time.Hour) | |
client.SendAt(scheduleTime, []esendex.Message{ | |
{To: "07123456789", Body: "Hello!"}, | |
}) |
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 singleMessage = New SmsMessage("447123456789", "Message Body", accountReference) | |
'Schedules a message to be sent on 31/10/2015 at 15:22 | |
messagingService.SendScheduledMessage(singleMessage, New System.DateTime(2015, 10, 31, 15, 22, 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
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)) |
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 singleMessage = New VoiceMessage("447123456789", "Message Body", accountReference) | |
messagingService.SendMessage(singleMessage) |
NewerOlder