问题
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