googleapi-get-email

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i googleapi-get-email

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • miyoda