Skip to content

Instantly share code, notes, and snippets.

View grantmcd's full-sized avatar

Grant McDonald grantmcd

  • Kansas City
  • 06:13 (UTC -05:00)
  • LinkedIn in/gtmcd
View GitHub Profile
@grantmcd
grantmcd / gist:a339116967dc703e2395cbd92e62ea25
Created December 14, 2022 21:11
Google Service Credential API Auth - Postman Pre Request
/* This script auto-generates a Google OAuth token from a Service Account key,
* and stores that token in accessToken variable in Postman.
*
* Prior to invoking it, please paste the contents of the key JSON
* into serviceAccountKey variable in a Postman environment.
*
* Then, paste the script into the "Pre-request Script" section
* of a Postman request or collection.
*
* The script will cache and reuse the token until it's within

Keybase proof

I hereby claim:

  • I am grantmcd on github.
  • I am grantmcdonald (https://keybase.io/grantmcdonald) on keybase.
  • I have a public key whose fingerprint is 005E 7E37 4CA9 273A 72DA A778 6CFA 6CAA A484 2209

To claim this, I am signing this object:

{
"tag": "reactions",
"id": null
}