@gve/google

0.3.4 • Public • Published

Google

Utilities to work easily with Google Cloud.

Installation

Install with npm.

npm i @gve/google

Usage

The auth module attempts to get Google application credentials from the environment variable GOOGLE_APPLICATION_CREDENTIALS. If that fails, it looks for GVE_GOOGLE_EMAIL and GVE_GOOGLE_KEY to get them.

const { auth: googleAuth } = require("@gve/google");
const dialogflow = require("@google-cloud/dialogflow");

const config = { credentials: googleAuth.credentials };
const sessionsClient = new dialogflow.SessionsClient(config);

License

Apache 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @gve/google

Weekly Downloads

5

Version

0.3.4

License

Apache-2.0

Unpacked Size

11.5 kB

Total Files

12

Last publish

Collaborators

  • gveappsupport
  • mattnorris