【问题标题】:Problems with Google+ Pages API Activities.InsertGoogle+ Pages API 活动的问题。插入
【发布时间】:2017-03-29 04:06:26
【问题描述】:

我可以通过合作伙伴计划访问 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

有人知道为什么会发生这种情况吗?

【问题讨论】:

  • 这是一个页面 API,您不能将其作为您的帐户发布。
  • 为什么发布到我的个人 G+ 帐户也可以?
  • 在问题中你说的是你的“个人 G+ 页面”。

标签: google-api google-plus google-apis-explorer google-plus-domains


【解决方案1】:

“必须由 Google+ 信息页或代表 Google+ 信息页调用此方法。”

进行此调用的用户必须有权访问域帐户。

确保你是正确的Authencated

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多