{
  "meta": {
    "name": "Send Bulk SMS",
    "type": "http",
    "seq": "1"
  },
  "http": {
    "method": "get",
    "url": "https://api.textlocal.in/send/:id",
    "body": "json",
    "auth": "bearer"
  },
  "params": [
    {
      "name": "apiKey",
      "value": "secret",
      "type": "query",
      "enabled": true
    },
    {
      "name": "numbers",
      "value": "998877665",
      "type": "query",
      "enabled": true
    },
    {
      "name": "message",
      "value": "hello",
      "type": "query",
      "enabled": false
    },
    {
      "name": "id",
      "value": "123",
      "type": "path",
      "enabled": true
    }
  ],
  "headers": [
    {
      "name": "content-type",
      "value": "application/json",
      "enabled": true
    },
    {
      "name": "Authorization",
      "value": "Bearer 123",
      "enabled": true
    },
    {
      "name": "transaction-id",
      "value": "{{transactionId}}",
      "enabled": false
    }
  ],
  "auth": {
    "awsv4": {
      "accessKeyId": "A12345678",
      "secretAccessKey": "thisisasecret",
      "sessionToken": "thisisafakesessiontoken",
      "service": "execute-api",
      "region": "us-east-1",
      "profileName": "test_profile"
    },
    "basic": {
      "username": "john",
      "password": "secret"
    },
    "bearer": {
      "token": "123"
    },
    "digest": {
      "username": "john",
      "password": "secret"
    },
    "oauth2": {
      "accessTokenUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/token",
      "authorizationUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/authorize",
       "autoFetchToken": true,
      "autoRefreshToken": true,
      "callbackUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/callback",
      "clientId": "client_id_1",
      "clientSecret": "client_secret_1",
      "credentialsId": "credentials",
      "credentialsPlacement": "body",
      "grantType": "authorization_code",
      "pkce": false,
      "refreshTokenUrl": "",
      "scope": "read write",
      "state": "807061d5f0be",
      "tokenHeaderPrefix": "Bearer",
      "tokenPlacement": "header",
      "tokenQueryKey": "access_token"
    },
    "wsse": {
      "username": "john",
      "password": "secret"
    }
  },
  "body": {
    "json": "{\n  \"hello\": \"world\"\n}",
    "text": "This is a text body",
    "xml": "<xml>\n  <name>John</name>\n  <age>30</age>\n</xml>",
    "sparql": "SELECT * WHERE {\n  ?subject ?predicate ?object .\n}\nLIMIT 10",
    "graphql": {
      "query": "{\n  launchesPast {\n    launch_site {\n      site_name\n    }\n    launch_success\n  }\n}",
      "variables": "{\n  \"limit\": 5\n}"
    },
    "formUrlEncoded": [
      {
        "name": "apikey",
        "value": "secret",
        "enabled": true
      },
      {
        "name": "numbers",
        "value": "+91998877665",
        "enabled": true
      },
      {
        "name": "message",
        "value": "hello",
        "enabled": false
      }
    ],
    "multipartForm": [
      {
        "contentType": "",
        "name": "apikey",
        "value": "secret",
        "enabled": true,
        "type": "text"
      },
      {
        "contentType": "",
        "name": "numbers",
        "value": "+91998877665",
        "enabled": true,
        "type": "text"
      },
      {
        "contentType": "",
        "name": "message",
        "value": "hello",
        "enabled": false,
        "type": "text"
      }
    ],
    "file" : [
      {
        "filePath": "path/to/file.json",
        "contentType": "application/json",
        "selected": true
      },
      {
        "filePath": "path/to/file.json",
        "contentType": "application/json",
        "selected": true
      },
      {
        "filePath": "path/to/file2.json",
        "contentType": "application/json",
        "selected": false
      }
    ]
  },
  "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
      }
    ]
  },
  "assertions": [
    {
      "name": "$res.status",
      "value": "200",
      "enabled": true
    },
    {
      "name": "$res.body.message",
      "value": "success",
      "enabled": false
    }
  ],
  "script": {
    "req": "const foo = 'bar';"
  },
  "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."
}
