gpt4 book ai didi

javascript - 获取用户最近的 SoundCloud 轨道链接

转载 作者:搜寻专家 更新时间:2023-10-31 22:33:18 26 4
gpt4 key购买 nike

我一直在寻找一种方法来做到这一点,因为看起来他们应该是一个。

我只想从我的 SoundCloud 页面自动提取 5 首最新轨道,并将它们放在我网站的“最新音频”部分下。

SoundCloud 甚至自己做这件事。如果您转到特定轨道,在页面的右下角有一个“USERNAME 的更多轨道”,请查看: http://soundcloud.com/goldenstatewarriors/mark-jackson-on-the-dan

我发现的最接近的是:

http://api.soundcloud.com/tracks?client_id={client_id}

但为此您需要一个 client_id,它用于 soundcloud 应用程序。我尝试注册一个应用程序,但是当我将给我的 client_id 输入到上面时,我得到了一堆不是我的轨道:

http://api.soundcloud.com/tracks?client_id=02db8e29aa2fb5bf590f478b73137c67

我只知道必须有办法做到这一点...

最佳答案

答案很简单

http://api.soundcloud.com/users/<USER_ID>/tracks.json?client_id=APP_ID

像这样打它:

http://api.soundcloud.com/users/jakuboboza/tracks.json?client_id=APP_ID 

你得到:

[{"kind":"track","id":3481075,"created_at":"2010/06/16 12:27:20   +0000","user_id":1187050,"duration":1331,"commentable":true,"state":"finished","original_content_size":15835,"sharing":"public","tag_list":"","permalink":"nl-lul","description":"","streamable":true,"downloadable":false,"genre":"","release":"","purchase_url":null,"purchase_title":null,"label_id":null,"label_name":"","isrc":"","video_url":null,"track_type":"","key_signature"...

created_at 和利润排序 :)

干杯!希望这有帮助

关于javascript - 获取用户最近的 SoundCloud 轨道链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10454218/

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