Google+API-在Google+上插入/更新状态


Google+ API - insert/update status on Google+

我有一个关于Google API的问题。我的目标是从服务器将状态发布到我们的Google+公司页面。所以它必须是服务器端的,完全的。

我从谷歌文档中看到了数百页,但我一点也不明白。

当我尝试执行操作"plusDomains.activity.insert"(通过API资源管理器)时,我得到错误:

{
 "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/."
 }
}

这个错误的原因是什么?我必须使用哪个用户?在开发者控制台中,我有3个用户和1个完全管理员(我的G-Apps帐户)。我应该将什么设置为客户端id和谷歌凭据对象?

非常感谢你的建议。

API资源管理器有一个错误,它默认使用与Google+域帐户不兼容的作用域。转到Google帐户权限列表并撤销Google APIs Explorer的访问权限。返回API资源管理器并再次授权,但取消选中https://www.googleapis.com/auth/plus.login作用域,只启用plus.meplus.stream.write作用域。