googleapis-auth
v1.0.2
Published
Generate a credentials (token) file for authorized access to Google APIs.
Downloads
17
Maintainers
Readme
googleapis-auth
Generate a credentials (token) file for authorized access to Google APIs.
Heavily based on the code sample in Google Drive's Node.js Quickstart guide – just a bit more streamlined, robust, and general-purpose!
Installation
Install the package with NPM:
$ npm install -g googleapis-auth
Usage
First, download your client_secret.json
file from the Google API Console.
Then, via the CLI, execute googleapis-auth
with the following arguments:
$ googleapis-auth CLIENT_SECRET_PATH CREDENTIALS_PATH
If successful, credentials will be saved to CREDENTIALS_PATH
.