如何从电子邮件地址获取Google用户ID? [英] How do I get the Google user ID from an email address?

查看:86
本文介绍了如何从电子邮件地址获取Google用户ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中显示用户的GMail化身.我可以使用Google People API轻松获取图片网址.但是此API需要一个用户ID.

I want to display the GMail avatar of the user in my app. I can easily get the image URL, using the Google People API. But this API expects a user ID.

我可以使用哪个其他Google API来传递电子邮件地址并获取用户ID?

Which other Google API can I use to pass in an email address, and get back the user ID?

推荐答案

技术上,Google人民api已连接到Google通讯录.因此,如果您对用户进行身份验证并且他们添加了自己的图片,您将以这种方式看到它.

The Google people api is technically hooked up to Google Contacts. So if you authenticate your user and they have added themselves with a picture you will see it that way.

Google+ api的工作方式与您对用户进行身份验证的方式相同,如果他们添加了图片,您将可以看到它.

The Google+ api will work the same way you authenticate the user and if they have added a picture you will be able to see it.

我可以使用哪个其他Google API来传递电子邮件地址并获取用户ID?

Which other Google API can I use to pass in an email address, and get back the user ID?

无.Google或任何其他公司都不会为您提供一个API,该API可以让您搜索人们的电子邮件地址并返回图片或您可能想咨询的有关该人的任何信息

NONE. There is no way Google or any other company is going to give you an api that is going to let you search on peoples email addresses and return a picture or any information about said person you may want to consult GDRP

电子邮件地址是私人用户信息,只有通过身份验证才能访问.

Email address is private user information and is only accessible by being authenticated.

这篇关于如何从电子邮件地址获取Google用户ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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