1.0.3 • Published 8 years ago

googleapi-get-email v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Build Status Dependency Status devDependency Status MIT Licence

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();
});