从Google/GMail中的电子邮件中检索accountId [英] Retrieve the accountId from email in Google/GMail

查看:62
本文介绍了从Google/GMail中的电子邮件中检索accountId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Google中使用 People API端点为了加载公共信息,但是此端点需要 account_id .我只有一个用户的电子邮件.

I'm trying to use the People API endpoint from Google in order to load public information, but this endpoints requires the account_id. I only have the email of an user.

是否可以使用端点将任何@ gmail.com电子邮件转换为相应的 account_id ,然后可以将其加载到People API中?

Is there an endpoint I can use to convert any @gmail.com email to the respective account_id that I can then load into the People API?

推荐答案

没有端点可以让您通过用户的电子邮件地址进行搜索并返回有关该用户的任何信息.

There is no end point which would allow you to search by a users email address and return any information about the user.

访问私人用户数据将要求您使用配置文件和电子邮件范围对用户进行身份验证,然后用户才能在其中授予您的应用程序对其个人信息的访问权限.

Access to private user data would require that you authenticate the user, with profile, and email scopes where by the user can then grant your application access to their personal information.

这篇关于从Google/GMail中的电子邮件中检索accountId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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