Twitter API 可以使用GET statuses/mentions_timeline轻松提取您自己的 @mentions 和 @replies 。
因此,如果我想提取自己的 @mentions,我可以使用 GET /statuses/mentions_timeline 进行身份验证并提取它。
但是跟踪其他用户的提及又如何呢?
例如,如何获取提及@StackOverflow的推文列表?
不用说,/1.1/statuses/mentions_timeline?screen_name=stackoverflow行不通。
最简单的方法是使用搜索 API。
https://api.twitter.com/1.1/search/tweets.json?q=%40StackOverflow
Run Code Online (Sandbox Code Playgroud)
这将为您提供 @StackOverflow 在查看回复时会看到的所有推文。
它的排序可能略有不同 - 基于转发等 - 但它是一个非常接近的近似值。
| 归档时间: |
|
| 查看次数: |
1648 次 |
| 最近记录: |