且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Twitter API v2 中获取扩展/全文推文

更新时间:2023-11-29 23:16:58

好问题,谢谢.我们是 也在 Twitter 开发者论坛上讨论这个问题.

Great question, thank you. We’re discussing this on the Twitter Developer forums as well.

在 API 的 v2 中,我们消除了扩展推文"的概念,因为我们假设所有新应用都理解 280 个字符的概念,因此完整的文本位于推文文本字段中.

In v2 of the API we have eliminated the notion of an "extended Tweet" since we assume that all new apps understand the concept of 280 characters, so the complete text is in the Tweet text field.

您发现的区别在于转推或引用的推文,其中嵌入的文本被截断.这(可能令人惊讶)与 v1.1 以及以前的高级和企业 API 相同.我们正在调查是否要对此进行修改,以及这样做的影响.

The difference you’re finding is in retweets or quoted Tweets where the embedded text is truncated. This is (perhaps surprisingly) the same as v1.1 and the former premium and enterprise APIs as well. We are investigating whether to modify this, and the implications in doing so.

我无意从 Stack 中夺走流量,但您可能会在我们的开发者论坛上找到更多持续更新和信息.谢谢!

I don’t for any means want to take traffic away from Stack, but you might find more ongoing updates and information on our developer forums. Thanks!