2023-01-14 20:14:21 +01:00
|
|
|
ver 1.0
|
|
|
|
type http-request
|
|
|
|
name Send Bulk SMS
|
|
|
|
method GET
|
|
|
|
url https://api.textlocal.in/bulk_json?apiKey=secret=&numbers=919988776655&message=hello&sender=600010
|
|
|
|
body-mode json
|
|
|
|
|
|
|
|
params
|
|
|
|
1 apiKey secret
|
|
|
|
1 numbers 998877665
|
|
|
|
1 message hello
|
|
|
|
/params
|
|
|
|
|
|
|
|
headers
|
|
|
|
1 content-type application/json
|
|
|
|
1 accept-language en-US,en;q=0.9,hi;q=0.8
|
|
|
|
0 transaction-id {{transactionId}}
|
|
|
|
/headers
|
|
|
|
|
|
|
|
body(type=json)
|
|
|
|
{
|
2023-01-14 23:21:48 +01:00
|
|
|
"apikey": "secret",
|
|
|
|
"numbers": "+91998877665",
|
|
|
|
"data": {
|
|
|
|
"sender": "TXTLCL",
|
|
|
|
"messages": [{
|
|
|
|
"numbers": "+91998877665",
|
|
|
|
"message": "Hello World"
|
2023-01-14 20:14:21 +01:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/body
|
|
|
|
|
|
|
|
body(type=graphql)
|
|
|
|
{
|
|
|
|
launchesPast {
|
|
|
|
launch_site {
|
|
|
|
site_name
|
|
|
|
}
|
|
|
|
launch_success
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/body
|
|
|
|
|
|
|
|
script
|
|
|
|
let user = 'John Doe';
|
|
|
|
|
|
|
|
function onRequest(request) {
|
|
|
|
request.body.user = user;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onResponse(request, response) {
|
|
|
|
expect(response.status).to.equal(200);
|
|
|
|
}
|
|
|
|
/script
|