Domanda

I am using Scribe-Java to connect to Google plus using OAuth2. I am able to authenticate my application and obtain user's permission, but when I try to access anything other than userinfo, I am getting this Exception.

403

{

"error": {

  "errors": [
            {

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

            }

            ],

  "code": 403,

"message": "Access Not Configured"

     }

}

I have set the scope of my application as https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile and to access user's profile I am using this url:

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

Can you tell me what I am doing wrong? Is there some other scope that I need to use here to access the Profile?

È stato utile?

Soluzione

1) Visit the Google APIs console: http://code.google.com/apis/console

2) Go to the 'Services' page.

3) Enable the Google+ API by switching it to On

Altri suggerimenti

I got the same error in PHP using HybridAuth:

I had to activate the following in the Google Developers Console in APIs & Auth -> APIs

  • Contacts API
  • Google+ API

See also the discussion at http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top