oauth - Google+ api moments insert unauthorized message -


i'm trying insert moments, using access_token, generated here https://developers.google.com/oauthplayground/ , receive "unauthorized" message. wrong? request is:

{   "target": {     "url": "http://example.com"   },   "type": "http://schemas.google.com/addactivity" } 

i send data on www.googleapis.com/plus/v1/people/me/moments/vault?access_token=######, ###### - access token.

the response is:

{   "error":{   "errors":[       {         "domain":"global",         "reason":"unauthorized",         "message":"unauthorized"       }     ],     "code":401,     "message":"unauthorized"   } } 

i had same problem, solved adding "request_visible_actions" , make sure have login scope set on request i.e "https://www.googleapis.com/auth/plus.login"


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -