问题描述
是否可以在 Twitter 中获得给定推文的回复(推文)?我正在 twitter 中搜索 API,但找不到相同的.有人可以帮助我吗?
Is it possible to get replies (tweets) for a given tweet in twitter? I am searching for a API in twitter but couldn't find the same. Can some one help me on this?
谢谢
推荐答案
https://api.twitter.com/1/related_results/show/172019363942117377.json?include_entities=1
这是一个实验性的 API.
That is an experimental API.
通过实验性 API,这意味着在我们在 dev.twitter.com 上正式记录它之前,它不一定是生产就绪的,并且它所采用的参数和响应格式都可能不稳定.它也可能有一天会消失.
By experimental API, this means that until we officially document it on dev.twitter.com, it's not necessarily production-ready and could be unstable both in the parameters it takes and the format of its responses. It also may just disappear one day.
至于 related_results 本身,它不一定会返回推文的所有回复,其回复也不一定仅限于回复.也就是说,对于您自己的个人使用或实验,您可能会在该方法中找到一些实用程序.如果您选择在您正在开发的任何软件中使用它,我会主动使用重要的异常处理来包装它的使用.
As for related_results itself, it won't necessarily return every reply for a tweet nor are its responses necessarily limited to just replies. That said, for your own personal use or experimentation you may find some utility in the method. If you choose to use it in any software you're developing, I would proactively wrap its use with significant exception handling.
这篇关于获取推特回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!