mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 10:11:15 +01:00
131 lines
1.7 KiB
Plaintext
131 lines
1.7 KiB
Plaintext
meta {
|
|
name: Send Bulk SMS
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: https://api.textlocal.in/send
|
|
body: json
|
|
auth: bearer
|
|
}
|
|
|
|
query {
|
|
apiKey: secret
|
|
numbers: 998877665
|
|
~message: hello
|
|
}
|
|
|
|
headers {
|
|
content-type: application/json
|
|
Authorization: Bearer 123
|
|
~transaction-id: {{transactionId}}
|
|
}
|
|
|
|
auth:awsv4 {
|
|
accessKeyId: A12345678
|
|
secretAccessKey: thisisasecret
|
|
sessionToken: thisisafakesessiontoken
|
|
service: execute-api
|
|
region: us-east-1
|
|
profileName: test_profile
|
|
}
|
|
|
|
auth:basic {
|
|
username: john
|
|
password: secret
|
|
}
|
|
|
|
auth:bearer {
|
|
token: 123
|
|
}
|
|
|
|
auth:digest {
|
|
username: john
|
|
password: secret
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"hello": "world"
|
|
}
|
|
}
|
|
|
|
body:text {
|
|
This is a text body
|
|
}
|
|
|
|
body:xml {
|
|
<xml>
|
|
<name>John</name>
|
|
<age>30</age>
|
|
</xml>
|
|
}
|
|
|
|
body:sparql {
|
|
SELECT * WHERE {
|
|
?subject ?predicate ?object .
|
|
}
|
|
LIMIT 10
|
|
}
|
|
|
|
body:form-urlencoded {
|
|
apikey: secret
|
|
numbers: +91998877665
|
|
~message: hello
|
|
}
|
|
|
|
body:multipart-form {
|
|
apikey: secret
|
|
numbers: +91998877665
|
|
~message: hello
|
|
}
|
|
|
|
body:graphql {
|
|
{
|
|
launchesPast {
|
|
launch_site {
|
|
site_name
|
|
}
|
|
launch_success
|
|
}
|
|
}
|
|
}
|
|
|
|
body:graphql:vars {
|
|
{
|
|
"limit": 5
|
|
}
|
|
}
|
|
|
|
vars:pre-request {
|
|
departingDate: 2020-01-01
|
|
~returningDate: 2020-01-02
|
|
}
|
|
|
|
vars:post-response {
|
|
token: $res.body.token
|
|
@orderNumber: $res.body.orderNumber
|
|
~petId: $res.body.id
|
|
~@transactionId: $res.body.transactionId
|
|
}
|
|
|
|
assert {
|
|
$res.status: 200
|
|
~$res.body.message: success
|
|
}
|
|
|
|
script:pre-request {
|
|
const foo = 'bar';
|
|
}
|
|
|
|
tests {
|
|
function onResponse(request, response) {
|
|
expect(response.status).to.equal(200);
|
|
}
|
|
}
|
|
|
|
docs {
|
|
This request needs auth token to be set in the headers.
|
|
}
|