我似乎无法以某种状态获取嵌入的 URL,例如,在 id=780804331608109057 中 -
https://twitter.com/i/web/status/780804331608109057
当我通过设置为 true 检索它时GET /statuses/:id
,include_entities
响应如下所示:
"text":"Here\u2019s WSJ \"An Underwhelming Trump-Clinton Debate\u201d trying to spin this as something other than a Clinton triumph\u2026 https:\/\/t.co\/dpkmphGI8k",
"truncated":true,
"entities":
{"hashtags":[],"symbols":[],"user_mentions":[],"urls":
[{"url":"https:\/\/t.co\/dpkmphGI8k",
"expanded_url":"https:\/\/twitter.com\/i\/web\/status\/780804331608109057",
"display_url":"twitter.com\/i\/web\/status\/7\u2026","indices":[114,137]}]},
"source":"\u003ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\"rel=\"nofollow\"\u003eTweetDeck\u003c\/a\u003e",....
在我的 Web 客户端上查看时,状态改为显示指向 WSJ 的链接(通过 t.co 引用)我希望这些 URL 中的一个或两个显示在我的 API 响应中:
- https://pbs.twimg.com/media/CtX5Sz8WIAAm4tq.jpg
- 看起来像“t.co”后跟“/HJs4kbmTKz”的短 URL 是什么(我必须打破它,所以 SO 不会抱怨。)
我在这里做错了什么?