gpt4 book ai didi

github - GitHub 如何支持 oembed?

转载 作者:行者123 更新时间:2023-12-01 03:22:06 29 4
gpt4 key购买 nike

GitHub 如何支持 oembed?

根据这个古老的要点
https://gist.github.com/skabber/54099

// URL scheme: http://gist.github.com/*
// API endpoint: http://gist.github.com/services/oembed/
// Example call: http://gist.github.com/services/oembed/?url=http%3A//gist.github.com/54099

但不幸的是,这不起作用。 (我得到了 http 404)

现在我知道 GitHub 允许 oembed 因为我可以在 medium.com 上的文章中嵌入片段

有人可以告诉我访问 GitHub Oembed 服务所需的 URL 吗?

附言
只是为了帮助:如果我问的是 Flick 而不是 GitHub 这个 URL 就是正确的答案:
http://www.flickr.com/services/oembed/?format=json&url=http%3A//www.flickr.com/photos/bees/2341623661/

附言二
如果有人想知道我为什么要这样做,那是因为我想查看 GitHub 提供的 JSON 响应

最佳答案

GitHub 不为其 url 提供 oEmbed 支持。你可以用这个来测试 oEmbed tester这告诉您该站点不支持 oEmbed。

在 oEmbed 元的帮助下,Medium 不会展开其内容。它只是获取内容的快照(在浏览器中打开相同的 url 内容时会显示)。通过嵌入 google doc 内容来尝试相同的方法。您可以清楚地了解媒体的作用。

中型用途 embed.ly这是一个 api 提供程序,它提供可以轻松添加到您网站的嵌入内容。

关于github - GitHub 如何支持 oembed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44455744/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com