node-googleapis
Javascirpt library for getting accessToken from authToken or refreshToken and getting userInfo for scope
- npm (Node.js package manager)
npm install node-googleapis --save
Usage
Modular include:
const api = ;... const file = '/home/ubuntu/client_secret.json'var auth_token = '****************************'const scope = 'https://www.google.com/m8/feeds/contacts/default/thin/?alt=json&max-results=10000' api // initialize api with client_id and client_secret api // refresh_token, access_token api // new access_token api