【问题标题】:Does Spotify offer an oEmbed API endpoint for their Spotify "Play Button" embed?Spotify 是否为其 Spotify“播放按钮”嵌入提供 oEmbed API 端点?
【发布时间】:2012-06-05 02:16:15
【问题描述】:

Spotify 是否为其 Spotify 播放按钮提供 oembed API 端点?

https://developer.spotify.com/technologies/spotify-play-button/

【问题讨论】:

    标签: api spotify oembed


    【解决方案1】:

    有点晚了,不过now there is oEmbed support, yes

    似乎还没有记录,但是here's an example

    {
        "height": 380, 
        "html": "<iframe src=\"https://embed.spotify.com/?uri=spotify:track:298gs9ATwr2rD9tGYJKlQR\" width=\"300\" height=\"380\" frameborder=\"0\" allowtransparency=\"true\"></iframe>", 
        "provider_name": "Spotify", 
        "provider_url": "https://www.spotify.com", 
        "thumbnail_height": 300, 
        "thumbnail_url": "https://d3rt1990lpmkn.cloudfront.net/300/35ff8ecde854e7c713dc4ffad2f31441e7bc1207", 
        "thumbnail_width": 300, 
        "title": "John De Sohn, Kristin Amparo - Dance Our Tears Away - Radio Edit", 
        "type": "rich", 
        "version": "1.0", 
        "width": 300
    }
    

    似乎尚不支持themeview 参数。

    【讨论】:

      【解决方案2】:

      没有。没有 oEmbed 支持。

      我们或许可以将它添加到丰富的类型中。我会将其添加为功能请求。 (我在 Spotify 工作)

      我同意功能请求不适合 Stack Overflow。

      【讨论】:

      • 这有什么更新吗?我真的很想在我工作的平台中实现这一点。
      • 显然是的。下面的答案(我的答案一年后)表明有 oembed 支持,由一位开发人员很快添加。官方文档中好像没有提到,但是好像可以。
      猜你喜欢
      • 2023-03-31
      • 2018-07-10
      • 2012-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-29
      • 2014-04-25
      • 2023-04-07
      相关资源
      最近更新 更多