0
votes

When I try to post an activity to Google+ I get the error:

{
  "error": {
    "code": 403, 
    "message": "Access Not Configured. The API (Google+ Domains API) is not enabled for your project. Please use the Google Developers Console to update your configuration.", 
    "errors": [
      {
        "domain": "usageLimits", 
        "message": "Access Not Configured. The API (Google+ Domains API) is not enabled for your project. Please use the Google Developers Console to update your configuration.", 
        "reason": "accessNotConfigured", 
        "extendedHelp": "https://console.developers.google.com"
      }
    ]
  }
}

I know this question has been asked before here, but I have a different message in my error. I've also enabled Google Domains API in the console. I'm using a Gmail account and I also receive circles and contacts information with the following scopes:

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

https://www.google.com/m8/feeds https://www.googleapis.com/auth/plus.login

https://www.googleapis.com/auth/plus.stream.write

https://www.googleapis.com/auth/plus.me

My Post body is:

{
"object": {
    "originalContent": "Happy Monday! #caseofthemondays"
},
"access": {
    "items": [
        {
            "type": "domain"
        }
    ],
    "domainRestricted": true
}

}

2
Was it working for you earlier?Vishnuvathsan
For post operations you might need access token which was granted/provided by the userVishnuvathsan
I already have the token, that's how I'm getting other information.user5182158
I haven't used post operations in Google+. But in Facebook, we need a Facebook app to request the user to grant relevant post access and once user grant the access, an access token will be generated. You have to store it to use it later when you do post operations on behalf of the user.Vishnuvathsan
Tokens for get and post are different (like read privilege and write privilege)Vishnuvathsan

2 Answers

1
votes

Found out this feature is only available for Google Apps customers not anyone else. Reference

0
votes

Have you created (or using) the API_KEYs in your Google project? If not, go to Google developer console and select the credentials section under APIs & Auth and create the API key relevant for your application. If you already have a key, try regenerating a new one