Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
552 B
1
Indexable
Never
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();
});