Code Examples (SFTP)
Below are two examples:
Basic, and
Advanced
Basic Message Example
version: 7
{
"message_template": "Hello to the SMS world.",
"contacts": [
{"msisdn": "1111111111"},
{"msisdn": "2222222222"},
{"msisdn": "3333333333"},
{"msisdn": "4444444444"}
]
}
Advanced Message Example
version: 7
{
"start": "2017-11-02 06:19",
"end": "2017-11-02 06:34",
"senderId": "Fixed",
"check_optouts": true,
"email": "[email protected]",
"max_errors": "1",
"message_template": "Message sent to @@value1@@",
"contacts": [
{"msisdn": "1111111111", "customerId": "AccJohn237", "values" : { "value1" : "John"}},
{"msisdn": "3333333333", "customerId": "TempAcc1032","message" : "Specific message for msisdn 3333333333"}
]
}
Custom Message
version: 7
{
"message_template": "Message sent to 1111111111, 2222222222 and 4444444444",
"contacts": [
{"msisdn": "1111111111"},
{"msisdn": "2222222222"},
{"msisdn": "3333333333", "message": "Specific message for msisdn 3333333333"},
{"msisdn": "4444444444"}
]
}
Custom Values
version: 7
{
"message_template": "Message sent to @@value1@@, Welcome @@value2@@ @@value3@@ @@value4@@",
"contacts": [
{"msisdn": "1111111111", "values" : { "value1" : "1111111111", "value2" : "Title", "value3" : "1stName", "value4" : "Surname"}},
{"msisdn": "2222222222", "values" : { "value1" : "2222222222", "value3" : "Jane", "value4" : "Doe" }},
{"msisdn": "3333333333", "message" : "Specific message for msisdn 3333333333"}
]
}
Updated over 5 years ago
See also