Google OAuth 2 PHP调用userinfo [英] Google OAuth 2 PHP call to userinfo
问题描述
我正在尝试使用Google的OAuth2 API.他们在通用文档中提到了一个名为UserInfo的调用: http://code .google.com/apis/accounts/docs/OAuth2Login.html#userinfocall ,这使我可以检索用户ID,电子邮件,姓名和其他基本信息.
I am trying to use Google's OAuth2 API. In their generic documentation, they mention a call called UserInfo: http://code.google.com/apis/accounts/docs/OAuth2Login.html#userinfocall , which would allow me to retrieve user ids, email, name and other basic stuff.
但是我无法在其PHP客户端库中找到它: https://code.google.com/p/google-api-php-client/
However I cannot find it in their PHP client library: https://code.google.com/p/google-api-php-client/
在哪里?
推荐答案
The PHP client was updated: https://code.google.com/p/google-api-php-client/issues/detail?id=43
这篇关于Google OAuth 2 PHP调用userinfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!