Retrieve the accountId from email in Google/GMail

喜夏-厌秋 提交于 2021-02-11 12:31:56

问题


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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/65249504/retrieve-the-accountid-from-email-in-google-gmail

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!