【问题标题】:find api code of soundcloud track找到soundcloud track的api代码
【发布时间】:2014-06-22 17:23:40
【问题描述】:

有没有一种快速的方法可以在 soundcloud 上获取曲目或播放列表的 api url?

例如此播放列表的 api 链接:

https://soundcloud.com/thump/sets/thump-x-avolta-5

是:

https%3A//api.soundcloud.com/playlists/40626677

以及该曲目的 api 链接:

https://soundcloud.com/larryfisherman/the-star-room-og-version

是:

https%3A//api.soundcloud.com/tracks/154949628

我想做什么:

这是我的 vimeo 链接代码。

if($tvideo === "Vimeo"){
        $Vimeo = "html('<iframe src=\"//player.vimeo.com/video/" . $video . "?color=bc2122\" width=\"700\" height=\"525\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');";
}

在表单中我有$tvideo(视频类型)。

$video 来自网址的代码,例如:

https://vimeo.com/83528019

号码:

83528019

我想对 soundcloud 做同样的事情,但是嵌入的 html 很奇怪†所以我需要找到 api url,而不是找到数字(对于 vimeo 的情况)。

†:

html('<iframe width=\"720\" height=\"500\" scrolling=\"no\" frameborder=\"no\" src=\"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/150885898&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true\"></iframe>');

【问题讨论】:

    标签: api soundcloud


    【解决方案1】:
    猜你喜欢
    • 2012-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-25
    • 1970-01-01
    相关资源
    最近更新 更多