32 lines
536 B
YAML
32 lines
536 B
YAML
info:
|
|
name: Check OTP
|
|
type: http
|
|
seq: 2
|
|
|
|
http:
|
|
method: POST
|
|
url: "{{baseUrl}}/auth/check-otp"
|
|
body:
|
|
type: multipart-form
|
|
data:
|
|
- name: mobile
|
|
type: text
|
|
value: "09001234567"
|
|
- name: token
|
|
type: text
|
|
value: "96969"
|
|
auth: inherit
|
|
|
|
runtime:
|
|
scripts:
|
|
- type: after-response
|
|
code: "var jsonData = res.getBody();\r
|
|
|
|
pm.collectionVariables.set(\"token\", jsonData.token);"
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|