This is a sample script for retrieving the access token for Service Account using Javascript. The flow for using this script is as follows.
- At first, please create the Service Account and retrieve JSON file.
- Put Scopes,
private_keyandclient_emailto the script. - Run the script.
In this script, 2 libraries of jsencrypt and crypto-js are used.