2023-02-04 11:41:29 +01:00
|
|
|
meta {
|
|
|
|
name: Send Bulk SMS
|
|
|
|
type: http
|
|
|
|
seq: 1
|
|
|
|
}
|
|
|
|
|
|
|
|
get {
|
2023-02-05 18:43:18 +01:00
|
|
|
url: https://api.textlocal.in/send
|
2023-02-04 11:41:29 +01:00
|
|
|
body: json
|
|
|
|
}
|
|
|
|
|
|
|
|
query {
|
|
|
|
apiKey: secret
|
|
|
|
numbers: 998877665
|
2023-02-05 18:43:18 +01:00
|
|
|
~message: hello
|
2023-02-04 11:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
headers {
|
|
|
|
content-type: application/json
|
|
|
|
Authorization: Bearer 123
|
2023-02-05 18:43:18 +01:00
|
|
|
~transaction-id: {{transactionId}}
|
2023-02-04 11:41:29 +01:00
|
|
|
}
|
|
|
|
|
2023-09-28 22:05:22 +02:00
|
|
|
auth:basic {
|
|
|
|
username: john
|
|
|
|
password: secret
|
|
|
|
}
|
|
|
|
|
|
|
|
auth:bearer {
|
|
|
|
token: 123
|
|
|
|
}
|
|
|
|
|
2023-02-04 19:57:18 +01:00
|
|
|
body:json {
|
|
|
|
{
|
|
|
|
"hello": "world"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body:text {
|
|
|
|
This is a text body
|
|
|
|
}
|
|
|
|
|
|
|
|
body:xml {
|
|
|
|
<xml>
|
|
|
|
<name>John</name>
|
|
|
|
<age>30</age>
|
|
|
|
</xml>
|
|
|
|
}
|
|
|
|
|
2023-02-04 11:41:29 +01:00
|
|
|
body:form-urlencoded {
|
|
|
|
apikey: secret
|
|
|
|
numbers: +91998877665
|
2023-02-05 18:43:18 +01:00
|
|
|
~message: hello
|
2023-02-04 11:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body:multipart-form {
|
|
|
|
apikey: secret
|
|
|
|
numbers: +91998877665
|
2023-02-05 18:43:18 +01:00
|
|
|
~message: hello
|
2023-02-04 11:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body:graphql {
|
|
|
|
{
|
|
|
|
launchesPast {
|
|
|
|
launch_site {
|
|
|
|
site_name
|
|
|
|
}
|
|
|
|
launch_success
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body:graphql:vars {
|
|
|
|
{
|
|
|
|
"limit": 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-07 00:43:14 +01:00
|
|
|
vars:pre-request {
|
2023-02-06 16:48:36 +01:00
|
|
|
departingDate: 2020-01-01
|
|
|
|
~returningDate: 2020-01-02
|
|
|
|
}
|
|
|
|
|
2023-02-07 00:43:14 +01:00
|
|
|
vars:post-response {
|
2023-02-04 11:41:29 +01:00
|
|
|
token: $res.body.token
|
2023-02-05 18:43:18 +01:00
|
|
|
@orderNumber: $res.body.orderNumber
|
|
|
|
~petId: $res.body.id
|
|
|
|
~@transactionId: $res.body.transactionId
|
2023-02-04 11:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
assert {
|
|
|
|
$res.status: 200
|
2023-02-05 18:43:18 +01:00
|
|
|
~$res.body.message: success
|
2023-02-04 11:41:29 +01:00
|
|
|
}
|
|
|
|
|
2023-02-07 00:09:23 +01:00
|
|
|
script:pre-request {
|
2023-02-04 19:57:18 +01:00
|
|
|
const foo = 'bar';
|
|
|
|
}
|
|
|
|
|
|
|
|
tests {
|
2023-02-04 11:41:29 +01:00
|
|
|
function onResponse(request, response) {
|
|
|
|
expect(response.status).to.equal(200);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
docs {
|
|
|
|
This request needs auth token to be set in the headers.
|
2023-02-04 19:57:18 +01:00
|
|
|
}
|