gpt4 book ai didi

javascript - Twitter API 提示 "Narrowcast id params must be integers."

转载 作者:搜寻专家 更新时间:2023-11-01 00:29:52 24 4
gpt4 key购买 nike

我正在使用 Twitter npm 模块,当发布到 favorites/destroy.jsonfavorites/create.json 之类的东西时

favorites/destroy.json?id=800364979287425024

我得到 { code: 96, message: 'Narrowcast id params must be integers.' }。有谁知道发生了什么事? Twitter API 文档对此一无所知。

我尝试发送带引号和不带引号的 id,但没有成功。

最佳答案

问题是我将 id 作为查询参数发送,而不是在 POST 正文中。 Twitter documentation for the route具有使用查询参数而不是帖子正文的不正确示例代码。

这样的 body 很好用。

{ id: 800364979287425024 }

关于javascript - Twitter API 提示 "Narrowcast id params must be integers.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40706111/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com