我可以通过合作伙伴计划访问 Google+ Pages API,并且正在尝试发布到我的域帐户。我能够成功地发布到我通过我的域帐户管理的页面,以及发布到我的个人 G+ 页面,但是在发布到我的域 G+ 帐户时,我不断收到此错误:
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Calls to this method must be made by or on behalf of a Google+ Page."
}
],
"code": 400,
"message": "Calls to this method must be made by or on behalf of a Google+ Page."
}
}
我已确认我已包含所有范围。为了进行测试,我使用了 Google 提供的命令行示例:
curl -v -H "Content-Type: application/json" -H "Authorization: OAuth <access token for Google+ Page>" -d "{'object':{'content':'Test message'}}" -X POST https://www.googleapis.com/plusPages/v2/people/<pageid>/activities
任何人都知道为什么会发生这种情况?