googleapi-get-email
v1.0.3
Published
Get email from google API with access_token
Downloads
18
Maintainers
Readme

Get email from google API with access_token
Install
Execute:
npm install --save googleapi-get-email
Use example
var googleapiGetEmail = require('googleapi-get-email');
googleapiGetEmail(accessToken).then(function(emailInfo) {
if (emailInfo.isVerified) {
email = emailInfo.email;
}
callback();
}).catch(function(err) {
console.log(err);
callback();
});