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
Post a Comment