是否有仅使用 ID 链接到推文的标准方法?

Is there a standard way of linking to a tweet using solely the ID?

我有一个推文 ID 数据库,它是从 search/tweets 获取的,我需要最终将其转换为 oEmbed 格式。为此,第一步是获取推文的 URL。我如何 link 仅使用 ID 发送推文?

您可以只使用 statuses/oembed 调用。正如 documentation 所述,您不需要 完整 url,您也可以仅使用推文 ID。

示例:https://api.twitter.com/1.1/statuses/oembed.json?id=507185938620219395

来自 Twitter 的博客:https://blog.twitter.com/2014/pro-tip-for-embedding-tweets-use-the-oembed-api-endpoint