我想在圈子中添加用户。我已按照Using OAuth 2.0 to Access Google APIs with scopesaccess_token
中的描述进行检索:
https://www.googleapis.com/auth/plus.me
https://www.googleapis.com/auth/plus.circles.read
https://www.googleapis.com/auth/plus.circles.write
https://www.googleapis.com/auth/plus.stream.write
然后我按照Circles 中的描述调用 HTTP 请求:addPeople
https://www.googleapis.com/plusDomains/v1/circles/<circleId>/people?userId=<userID>
但作为回应,我得到 -
{
"error": {
"errors": [
{
"domain": "plusDomains",
"reason": "forbiddenScope",
"message": "Access to the Google+ Domains API is not allowed as the user has consented to incompatible scopes. See: https://developers.google.com/+/domains/authentication/."
}
],
"code": 403,
"message": "Access to the Google+ Domains API is not allowed as the user has consented to incompatible scopes. See: https://developers.google.com/+/domains/authentication/."
}
}
我在项目的API 和 Auth 部分启用了Google+ API和Google+ Domains API 。
提前致谢!