gapi-lite

1.0.3 • Public • Published

gapi-lite

Light Weight Google API Client

npm install gapi-lite --save

usage

const GoogleAPI = require('gapi-lite');
const scopes = [
  'https://www.googleapis.com/auth/bigquery',
  'https://www.googleapis.com/auth/bigquery.insertdata',
];
const api = new GoogleAPI('./google-auth.json', scopes);

api.get('google-api-url')
  .then(doSomeThingWithJSOnData)
  .catch(handleError)

api.post('google-api-url', bodyJSON)
  .then(doSomeThingWithJSOnData)
  .catch(handleError)

Readme

Keywords

none

Package Sidebar

Install

npm i gapi-lite

Weekly Downloads

9

Version

1.0.3

License

MIT

Last publish

Collaborators

  • palamccc