@cisco/google
v0.4.5
Published
Utilities to work easily with [Google Cloud](https://cloud.google.com/).
Downloads
22
Keywords
Readme
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);