Untitled

 avatar
unknown
plain_text
2 years ago
552 B
3
Indexable
pm.sendRequest({
    url: {{go-api-host}}/oauth/token,
    method: 'POST',
    header: {
        'Content-Type': 'multipart/form-data',
          },
      body: {
          mode: 'formdata',
          formdata: [
            {key: "client_id", value: {yourValue}, disabled: false, description: {content:"", type:"text/plain"}},
            {key: "client_secret", value: {yourValue}, disabled: false, description: {content:"", type:"text/plain"}}
        ]
      }
},  function(err, response) {
  const jsonResponse = response.json();
});
Editor is loading...