0.3.4 • Published 2 years ago
@gve/google v0.3.4
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);