是否有用于获取 Chrome 扩展程序用户的 Google 帐户的 API? [英] Is there an API to get Google Account of Chrome extension user?

查看:28
本文介绍了是否有用于获取 Chrome 扩展程序用户的 Google 帐户的 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome 网上应用店帮助页面说要安装应用或扩展程序,您需要一个 Google 帐户.是否有 API 可以访问安装扩展程序的用户电子邮件?我需要此信息以将书签保存到用户名下的 Google App Engine.欢迎提出任何如何做到这一点的建议.这是我以前的问题.谢谢.

Chrome web store help page says that to install an app or an extension you need a Google Account. Is there an API to access the user email who installed the extension? I need this information to save the bookmarks to Google App Engine under user's name. Any suggestions how this can be done is welcome. This is my previous question. Thanks.

推荐答案

您可以使用 Google 之一帐户 API 用于在用户安装您的扩展程序时向 Google 进行身份验证.这将为您提供一个 URL,您可以将其用作用户的唯一标识符.

You could use one of the Google Accounts APIs to authenticate the user with Google when he installs your extension. This will give you a URL you can use as a unique identifier for the user.

我怀疑 Chrome 会在没有许可警告的情况下泄露用户的电子邮件地址,并且由于 列表警告 不包含与用户的 Google 帐户相关的任何内容,我假设只是无法获取用户的 Google 帐户名称.

I doubt Chrome would divulge the user's email address without a permission warning, and since the list of warnings doesn't contain anything related to the user's Google account, I'm assuming it just isn't possible to get the user's Google account name.

这篇关于是否有用于获取 Chrome 扩展程序用户的 Google 帐户的 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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