0.4.5 • Published 3 years ago

@cisco/google v0.4.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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