Google api 谷歌的问题+;页面API活动。插入
我可以通过合作伙伴程序访问Google+Pages API,我正在尝试向我的域帐户发布。我能够成功地发布到我通过我的域帐户管理的页面,以及发布到我的个人G+页面,但在发布到我的域G+帐户时,我不断收到此错误:Google api 谷歌的问题+;页面API活动。插入,google-api,google-plus,google-apis-explorer,google-plus-domains,Google Api,Google Plus,Google Apis Explorer,Google Plus Domains,我可以通过合作伙伴程序访问Google+Pages API,我正在尝试向我的域帐户发布。我能够成功地发布到我通过我的域帐户管理的页面,以及发布到我的个人G+页面,但在发布到我的域G+帐户时,我不断收到此错误: "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Calls to this method must be made by or on behalf
"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
curl-v-H“内容类型:application/json”-H“授权:OAuth”-d“{'object':{'Content':'testmessage'}”-X POSThttps://www.googleapis.com/plusPages/v2/people//activities
有人知道为什么会这样吗
“对该方法的调用必须由Google+页面或其代表进行。”
进行此呼叫的用户必须具有访问域帐户的权限
请确保您正确地使用了这是一个页面API,您不能将其作为您的帐户发布。那么为什么它会与发布到我的个人G+帐户一起工作呢?在问题中,您说的是您的“个人G+页面”。