为什么我无法从谷歌电子邮件ID加上API与角谷歌加模块? [英] Why I am unable to get email-id from Google plus api with angular-google-plus module?

查看:166
本文介绍了为什么我无法从谷歌电子邮件ID加上API与角谷歌加模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在code以下被写入到与角谷歌加module.I我得到用户信息像姓,名,用户名,映像,除非EMAILID反应得到的loggedIn。

  GooglePlus.login()。然后(功能(响应){
    GooglePlus.getUser()。然后(功能(响应){
       的console.log(响应);
     });
  },
  功能(错误){
      的console.log(ERR);
  });
 };


解决方案

试试这个
  GooglePlus.getProfile()。然后(功能(用户){
                的console.log(用户);});

The code below is written to be get loggedIn with angular-google-plus module.I am getting user info in response like last name,name,username,image except emailId.

  GooglePlus.login().then(function(response) {
    GooglePlus.getUser().then(function(response) {
       console.log(response);
     });
  },
  function(err) {
      console.log(err);
  });
 };

解决方案

Try this GooglePlus.getProfile().then(function (user) { console.log(user);});

这篇关于为什么我无法从谷歌电子邮件ID加上API与角谷歌加模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆