无法从Google Plus访问用户的个人资料

Log*_*gan 5 java scribe oauth-2.0 google-plus

我使用Scribe-Java使用OAuth2连接到Google Plus.我能够验证我的应用程序并获得用户的许可,但是当我尝试访问除了以外的任何内容时userinfo,我收到此异常.

403

{

"错误":{

  "errors": [
            {

          "domain": "usageLimits",
           "reason": "accessNotConfigured","message": "Access Not Configured"

            }

            ],

  "code": 403,

"message": "Access Not Configured"

     }

}
Run Code Online (Sandbox Code Playgroud)

我已将应用程序的范围设置https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile为访问用户的配置文件我正在使用此URL:

https://www.googleapis.com/plus/v1/people/{userid}/activities/public

你能告诉我我做错了什么吗?我需要在这里使用其他范围来访问配置文件吗?

Rya*_*oyd 11

1)访问Google API控制台:http: //code.google.com/apis/console

2)转到"服务"页面.

3)通过将Google+ API切换为开启来启用它