谷歌配置文件的Zend-oauth范围



有人能告诉我使用zend oauth php 获取谷歌用户帐户的配置文件图片的范围吗

require_once 'Zend/Oauth/Consumer.php';
        $SCOPES = array(
            'https://www.googleapis.com/auth/userinfo#email',
            'https://mail.google.com/',
            'http://www.google.com/calendar/feeds/',
            'https://www.google.com/m8/feeds/'
        );

而我给予https://www.googleapis.com/auth/userinfo#profile,它抛出错误

任何帮助都将不胜感激

userinfo作用域的正确名称为:

https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile

我认为OAuth 2.0 Playground提供了Google OAuth范围的最完整概述。

尝试使用句点而不是磅号。我能够成功地进行身份验证https://www.googleapis.com/auth/userinfo.profile在OAuth 1操场http://googlecodesamples.com/oauth_playground/.如果这不起作用,把你的要求和操场上的要求进行比较。

最新更新