2023-02-04 11:41:29 +01:00
|
|
|
{
|
|
|
|
"meta": {
|
|
|
|
"name": "Send Bulk SMS",
|
|
|
|
"type": "http",
|
|
|
|
"seq": "1"
|
|
|
|
},
|
|
|
|
"http": {
|
2023-02-04 19:57:18 +01:00
|
|
|
"method": "get",
|
2023-02-05 18:43:18 +01:00
|
|
|
"url": "https://api.textlocal.in/send",
|
2023-10-03 21:06:52 +02:00
|
|
|
"body": "json",
|
|
|
|
"auth": "bearer"
|
2023-02-04 11:41:29 +01:00
|
|
|
},
|
2023-09-21 21:12:48 +02:00
|
|
|
"query": [
|
|
|
|
{
|
|
|
|
"name": "apiKey",
|
|
|
|
"value": "secret",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "numbers",
|
|
|
|
"value": "998877665",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "message",
|
|
|
|
"value": "hello",
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
2023-02-04 11:41:29 +01:00
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"name": "content-type",
|
|
|
|
"value": "application/json",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Authorization",
|
|
|
|
"value": "Bearer 123",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "transaction-id",
|
|
|
|
"value": "{{transactionId}}",
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
2023-09-28 22:05:22 +02:00
|
|
|
"auth": {
|
|
|
|
"basic": {
|
|
|
|
"username": "john",
|
|
|
|
"password": "secret"
|
|
|
|
},
|
|
|
|
"bearer": {
|
|
|
|
"token": "123"
|
|
|
|
}
|
|
|
|
},
|
2023-02-04 11:41:29 +01:00
|
|
|
"body": {
|
2023-02-04 19:57:18 +01:00
|
|
|
"json": "{\n \"hello\": \"world\"\n}",
|
|
|
|
"text": "This is a text body",
|
|
|
|
"xml": "<xml>\n <name>John</name>\n <age>30</age>\n</xml>",
|
2023-02-04 11:41:29 +01:00
|
|
|
"graphql": {
|
2023-02-04 19:57:18 +01:00
|
|
|
"query": "{\n launchesPast {\n launch_site {\n site_name\n }\n launch_success\n }\n}",
|
|
|
|
"variables": "{\n \"limit\": 5\n}"
|
2023-02-04 11:41:29 +01:00
|
|
|
},
|
|
|
|
"formUrlEncoded": [
|
|
|
|
{
|
|
|
|
"name": "apikey",
|
|
|
|
"value": "secret",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "numbers",
|
|
|
|
"value": "+91998877665",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "message",
|
|
|
|
"value": "hello",
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"multipartForm": [
|
|
|
|
{
|
2023-09-21 21:12:48 +02:00
|
|
|
"name": "apikey",
|
2023-02-04 11:41:29 +01:00
|
|
|
"value": "secret",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "numbers",
|
|
|
|
"value": "+91998877665",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "message",
|
|
|
|
"value": "hello",
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-02-06 16:48:36 +01:00
|
|
|
"vars": {
|
|
|
|
"req": [
|
|
|
|
{
|
|
|
|
"name": "departingDate",
|
|
|
|
"value": "2020-01-01",
|
|
|
|
"local": false,
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "returningDate",
|
|
|
|
"value": "2020-01-02",
|
|
|
|
"local": false,
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"res": [
|
|
|
|
{
|
|
|
|
"name": "token",
|
|
|
|
"value": "$res.body.token",
|
|
|
|
"local": false,
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "orderNumber",
|
|
|
|
"value": "$res.body.orderNumber",
|
|
|
|
"local": true,
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "petId",
|
|
|
|
"value": "$res.body.id",
|
|
|
|
"local": false,
|
|
|
|
"enabled": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "transactionId",
|
|
|
|
"value": "$res.body.transactionId",
|
|
|
|
"local": true,
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-02-21 09:34:05 +01:00
|
|
|
"assertions": [
|
2023-02-04 11:41:29 +01:00
|
|
|
{
|
|
|
|
"name": "$res.status",
|
|
|
|
"value": "200",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "$res.body.message",
|
|
|
|
"value": "success",
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
2023-02-06 16:48:36 +01:00
|
|
|
"script": {
|
|
|
|
"req": "const foo = 'bar';"
|
|
|
|
},
|
2023-02-04 19:57:18 +01:00
|
|
|
"tests": "function onResponse(request, response) {\n expect(response.status).to.equal(200);\n}",
|
|
|
|
"docs": "This request needs auth token to be set in the headers."
|
2023-09-21 21:12:48 +02:00
|
|
|
}
|