0

I am using Google plus Oauth in client side in a web application . I have registered and could get userinformation using the api, But When I tried to get the friend list using the following get operation, I am getting a 403 error

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

I have set the userid and collection, but unfortunately I got this error

{
 "error": {`enter code here`
  "errors": [
   {
    "domain": "global",
    "reason": "forbidden",
    "message": "Forbidden"
   }
  ],
  "code": 403,
  "message": "Access Not Configured"
 }
}

Note: I have included https://www.googleapis.com/auth/plus.login to the scope also.

Could somebody help me please, Thanks in advance

4

1 回答 1

0

我终于自己解决了,我发布这个答案是为了帮助遇到同样错误的其他人你必须在最后附加访问令牌

https://www.googleapis.com/plus/v1/people/{userid}/people/{collection}?access_token={accesstoken}

或者你可以me改用{userid}

https://www.googleapis.com/plus/v1/people/me/people/{collection}?access_token={accesstoken}

两者都工作正常。谢谢

于 2013-12-26T17:29:54.400 回答