googleapis-auth

1.0.2 • Public • Published

googleapis-auth NPM version

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.

Package Sidebar

Install

npm i googleapis-auth

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • lukehorvat