Access to user's name and profile picture in the AppEngine's app

人走茶凉 提交于 2020-01-16 04:59:06

问题


AppEngine has Users service to access Google account information. Unfortunately, it doesn't provide access to the Google account's many properties, specifically name and profile picture. Could anyone advise a proper way of retrieving that information?


回答1:


The Users API does not provide any way to access anything other than the user's email address. Any other information has to be accessed independently, using APIs such as the Google Profiles API.




回答2:


Google Profiles API would not work for default Google (gmail) Accounts, unfortunately.

http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=1925

If you want to get access to name and email, I believe, you could use attribute exchange (AX) with Google's OpenID. You can even combine OpenID with OAuth. I'm not sure, however, if you can get access to picture URL.



来源:https://stackoverflow.com/questions/7353505/access-to-users-name-and-profile-picture-in-the-appengines-app

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