2021-03-01 15:18:10 +01:00
|
|
|
### Create transactional SMS template
|
|
|
|
|
|
|
|
# @name createSms
|
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"APIKey": "powow",
|
|
|
|
"Command": "TransactionalSms.Create"
|
|
|
|
}
|
|
|
|
|
|
|
|
### Update transactional SMS template
|
|
|
|
|
|
|
|
@SmsID = {{createSms.response.body.$.SmsID}}
|
|
|
|
|
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"APIKey": "powow",
|
|
|
|
"Command": "TransactionalSms.Update",
|
|
|
|
"SmsID": {{SmsID}},
|
|
|
|
"SmsName": "Defaut SMS",
|
|
|
|
"FromName": "FakeSMS",
|
|
|
|
"Content": "Bonjour %Subscriber:Firstname%,\nLorem ipsum dolor sit amet...",
|
|
|
|
"ShortLink": 0,
|
|
|
|
"Language": "fr"
|
|
|
|
}
|
|
|
|
|
|
|
|
### Send transactional SMS
|
|
|
|
|
2020-12-22 15:00:42 +01:00
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"APIKey": "powow",
|
|
|
|
"Command": "TransactionalSms.Send",
|
|
|
|
"ResponseFormat": "JSON",
|
2021-03-01 15:18:10 +01:00
|
|
|
"SmsID": {{SmsID}},
|
2020-12-22 15:00:42 +01:00
|
|
|
"MobilePhoneNumber": "+33699999999",
|
|
|
|
"TimeToSend": "2017-01-01 10:00:00",
|
|
|
|
"CustomData": {
|
|
|
|
"Firstname": "Rm9v"
|
|
|
|
}
|
|
|
|
}
|