Google OAuth 2 PHP调用userinfo [英] Google OAuth 2 PHP call to userinfo

查看:99
本文介绍了Google OAuth 2 PHP调用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/

在哪里?

推荐答案

PHP客户端已更新:

The PHP client was updated: https://code.google.com/p/google-api-php-client/issues/detail?id=43

这篇关于Google OAuth 2 PHP调用userinfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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