【发布时间】:2023-03-31 11:30:01
【问题描述】:
我正在使用 Twitter API,但遇到了一个问题。我的问题是我无法从 Twitter 获得所有推文和转推作为回应。我已经阅读了 twitter link 上的文档。他们提到了This method can only return up to 3,200 of a user’s most recent Tweets. Native retweets of other statuses by the user is included in this total, regardless of whether include_rts is set to false when requesting this resource.
但是当我点击 https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=xxxxx&count=968 时,我只收到 198 条响应记录,而我有 968 条推文。
所以请帮助我了解如何从 Twitter 获取所有记录作为响应,以及我必须在 URL 中传递哪些参数才能获取所有推文和转推?
请建议我更好的方法。
【问题讨论】: