我有一个关于Google API的问题。我的目标是从服务器将状态发布到我们的Google+公司页面。所以它必须完全是服务器端的。
我看了上百页的Google文档,但我一点也不懂。
当我尝试执行操作"plusDomains.activities.insert“(通过API Explorer)时,我得到错误:
{
"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帐户)。我应该将什么设置为client-id和google credentials对象?
非常感谢您的建议。
发布于 2014-10-08 03:02:40
API Explorer有一个错误,它默认使用与Google+域帐户不兼容的作用域。转到Google account permissions列表并从Google APIs Explorer撤销访问权限。返回到APIs Explorer并再次授权,但取消选中https://www.googleapis.com/auth/plus.login范围,只启用plus.me和plus.stream.write范围。
https://stackoverflow.com/questions/26237429
复制相似问题