如何在 POST favorites/create 之后与 Twitter API 获取实际推文?

How to get the actual tweet after POST favorites/create with the Twitter API?

我的应用程序为用户提供了喜欢或不喜欢推文的功能。操作的 API end-point 是 POST favorites/create and POST favorites/destroy。 同样在文档中,有这样的信息“The immediately returned Tweet object may not indicate the resultant favorited status of the Tweet” 这不是我想要的,favorite_count 总是错误的(当你第一次喜欢时,没有任何反应。但第二次你不喜欢 favorite_count 增加)。我希望它 return 更新后的推文,以便我可以在我的应用程序中显示真实数据。 顺便说一句,我的应用程序是用 front-end 中的 React 和 Redux 和 back-end 中的 Nodejs 构建的。

Twitter的系统是最终一致的,像这样的行为可能会延迟写入。不幸的是,没有办法“强制”Twitter 提供当前和即时准确的点赞数。