2021-03-01 15:18:10 +01:00
|
|
|
### Create transactional SMS template
|
|
|
|
|
|
|
|
# @name createSms
|
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
2021-03-17 09:11:02 +01:00
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
APIKey=powow
|
|
|
|
&Command=TransactionalSms.Create
|
2021-03-01 15:18:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
### Update transactional SMS template
|
|
|
|
|
|
|
|
@SmsID = {{createSms.response.body.$.SmsID}}
|
|
|
|
|
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
2021-03-17 09:11:02 +01:00
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
APIKey=powow
|
|
|
|
&Command=TransactionalSms.Update
|
|
|
|
&SmsID={{SmsID}}
|
|
|
|
&SmsName=Defaut SMS
|
|
|
|
&FromName=FakeSMS
|
|
|
|
&Content=Bonjour%20%25Subscriber%3AFirstname%25%2C%5CnLorem%20ipsum%20dolor%20sit%20amet...
|
|
|
|
&ShortLink=0
|
|
|
|
&Language=fr
|
|
|
|
|
2021-03-01 15:18:10 +01:00
|
|
|
|
|
|
|
### Send transactional SMS
|
|
|
|
|
2020-12-22 15:00:42 +01:00
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
2021-03-17 09:11:02 +01:00
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
APIKey=powow
|
|
|
|
&Command=TransactionalSms.Send
|
|
|
|
&ResponseFormat=JSON
|
|
|
|
&SmsID={{SmsID}}
|
|
|
|
&MobilePhoneNumber=+33699999999
|
|
|
|
&TimeToSend=2017-01-01 10:00:00
|
|
|
|
&CustomData=a%3A1%3A%7Bs%3A9%3A%22Firstname%22%3Bs%3A8%3A%22am9obg%3D%3D%22%3B%7D
|
|
|
|
# custom data [Firstname => "john"] = a:1:{s:9:"Firstname";s:8:"am9obg==";}
|
2021-05-04 15:33:36 +02:00
|
|
|
|
|
|
|
### Send transactional SMS - Generate InvalidPhoneNumber error with valid phone number
|
|
|
|
|
|
|
|
POST http://localhost:3000/api/v1/mock/powow
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
APIKey=powow
|
|
|
|
&Command=TransactionalSms.Send
|
|
|
|
&ResponseFormat=JSON
|
|
|
|
&SmsID={{SmsID}}
|
|
|
|
&MobilePhoneNumber=+33666666666
|
|
|
|
&TimeToSend=2017-01-01 10:00:00
|
|
|
|
&CustomData=a%3A1%3A%7Bs%3A9%3A%22Firstname%22%3Bs%3A8%3A%22am9obg%3D%3D%22%3B%7D
|