如何在Google Apps中获取用户的电子邮件地址? [英] How can I get the user's email address in google apps?
本文介绍了如何在Google Apps中获取用户的电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我的 google plus 应用中具有该用户的访问令牌,如何获取该用户的电子邮件地址?
How can I get the user's email address if I have the access token of that user in my google plus apps?
推荐答案
获取用户的电子邮件地址需要其他授权。您需要添加 https://www.googleapis.com/auth/userinfo.email作用域,然后可以使用userinfo端点来请求信息。有关更多信息,请参见 https://developers.google.com/accounts/docs/OAuth2
Getting the user's email address requires additional authorization. You will need to add the https://www.googleapis.com/auth/userinfo.email scope and can then use the userinfo endpoint to request the information. See https://developers.google.com/accounts/docs/OAuth2 for more information.
这篇关于如何在Google Apps中获取用户的电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文