Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sdrycroft on github.
  • I am sdrycroft (https://keybase.io/sdrycroft) on keybase.
  • I have a public key ASAjPNfVvbLT1Kbx40ngRavrYNVXKKW6-ztsrhmuZMurxAo

To claim this, I am signing this object:

if((Date.now() / 1000 | 0) > pm.environment.get("oauthTokenExpires")) {
pm.sendRequest({
url: "{{baseUrl}}/token",
method: 'POST',
header: 'Content-Type: application/json',
body: {
mode: 'raw',
raw: JSON.stringify({
grant_type: "client_credentials",
client_id:"{{clientIdentifier}}",