Skip to content

palamccc/gapi-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Light Weight Google API Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published