什么是chrome.identity.getProfileUserInfo意味着返回? [英] What is chrome.identity.getProfileUserInfo meant to return?

查看:244
本文介绍了什么是chrome.identity.getProfileUserInfo意味着返回?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着Chrome 37的发布,现在有一个新的API可用, identity.getProfileUserInfo 。我不确定这是什么信息返回或它代表什么。

With Chrome 37 now released, there is a new API available, identity.getProfileUserInfo. I am not really sure what information this is meant to return or what it represents.

从文档中,我认为它会返回签名用户的电子邮件地址和id到Chrome(即从汉堡菜单),但是这不是真的 - 当我从它的扩展的上下文中请求身份权限)时,我得到以这种方式签名的用户的ID(如果我在plus.google.com/后获得他们的G +页面),但电子邮件字段为空。这是打算吗?

From the documentation, I thought it would return the email address and id of the user signed into Chrome(i.e. from the hamburger menu), however this is not really true- when I call it(from the context of an extension, which requests the "identity" permission), I get the id of the user signed in that way(and if I paste that after plus.google.com/ I get their G+ page), but the email field is blank. Is that intended?

推荐答案

想通了。有一个未公开的文档(至少在官方developer.chrome.com文档中)需要请求identity.email权限以便填充该字段。
https://groups.google.com/ a / chromium.org / forum /#!topic / apps-dev / WS-5GRw0RkI

Figured it out. There is an undocumented (in the official developer.chrome.com docs at least) need to request the "identity.email" permission as well in order for that field to be filled. https://groups.google.com/a/chromium.org/forum/#!topic/apps-dev/WS-5GRw0RkI

这篇关于什么是chrome.identity.getProfileUserInfo意味着返回?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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