【发布时间】:2017-01-05 22:06:25
【问题描述】:
编写下面的代码是为了使用 angular-google-plus 模块登录。我正在获取用户信息作为响应,例如姓氏、姓名、用户名、图像,但 emailId 除外。
GooglePlus.login().then(function(response) {
GooglePlus.getUser().then(function(response) {
console.log(response);
});
},
function(err) {
console.log(err);
});
};
【问题讨论】:
-
你找到解决办法了吗?
-
不,还没有..你知道如何得到它吗?
-
转到以下链接,您将找到相同的代码 m using.plnkr.co/edit/jvHVtNedJoPcqRKg8OLz?p=preview
-
您还必须从谷歌开发者控制台提供客户端 ID 和 api 密钥。
标签: angularjs google-plus