Post 更新缓冲区 API 错误 - "Please select at least one account to post from"

Post update to Buffer API error - "Please select at least one account to post from"

我正在扩展一个应用程序以包含使用缓冲区 API 半自动发布到社交媒体的功能。我无法将更新发布到 Buffer。

使用 Postman 玩转 API,一切都已成功验证,我可以 GET 我需要的任何东西,但是,我一直收到错误 [=尝试 POST 更新时返回 15=]。

向 postman 添加所需的参数后,我有以下请求 URL,但失败了:

https://api.bufferapp.com/1/updates/create.json?pretty=true&access_token=1/XXXXXXXXXXXXX&profile_ids[]=XXXXXXXXXXXX&text=This is an update

阅读 this 推特帖子后,我也尝试了以下但没有成功:

https://api.bufferapp.com/1/updates/create.json?pretty=true&access_token=1/XXXXXXXXXXXXX&profile_ids%5B%5D=XXXXXXXXXXXX&text=This is an update

完整的错误/响应是:

{
    "success": false,
    "message": "Please select at least one account to post from.",
    "code": 1004
}

相关文档为here

我忽略了什么?我偷偷怀疑这是我没有看到的简单事情。

非常感谢任何帮助:)

您是否尝试过将 POST 数据而不是 URL 放在请求正文中?例如:

HTTP/POST https://api.bufferapp.com/1/updates/create.json
Content-Type: application/x-www-form-urlencoded

pretty=true&access_token=1/XXXXXXXXXXXXX&profile_ids[]=XXXXXXXXXXXX&text=This is an update