-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsms-service.postman_collection.json
53 lines (53 loc) · 1.19 KB
/
sms-service.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"info": {
"_postman_id": "40a55588-fe78-41f3-9703-e25c2a5bbed9",
"name": "sms-service",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "/1.0/sms/instant",
"event": [
{
"listen": "prerequest",
"script": {
"id": "e8254673-8b62-439b-84fe-66a5a75ee3ce",
"exec": [
"var moment = require('moment');\r",
"pm.globals.set(\"timestampIso\", moment().format(\"YYYY-MM-DD HH:mm:ss.SSS\"));"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"mobile\": \"60133532820\",\r\n \"message\": \"Initial Testing\",\r\n \"reference\": \"{{$guid}}\",\r\n \"requestTime\": \"{{timestampIso}}\"\r\n}"
},
"url": {
"raw": "{{PROTOCOL}}://{{ENDPOINT}}/1.0/sms/instant",
"protocol": "{{PROTOCOL}}",
"host": [
"{{ENDPOINT}}"
],
"path": [
"1.0",
"sms",
"instant"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}