掌握的SoundCloud API特定用户的歌曲列表 [英] Getting specific user's track list with soundcloud API

查看:121
本文介绍了掌握的SoundCloud API特定用户的歌曲列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能从通过的SoundCloud API特定用户得到的曲目列表,而不需要特定的用户进行身份验证?

Is it possible to get the track list from a specific user via the soundcloud API WITHOUT requiring that specific user to authenticate?

我在寻找类似YouTube的饲料,你可以在这里:<一href=\"https://gdata.youtube.com/feeds/api/users/mrromandiaz/uploads?max-results=10\">https://gdata.youtube.com/feeds/api/users/mrromandiaz/uploads?max-results=10 (我已经指出了这在我的帐户,但用户名mrromandiaz可以换成任何用户名来获取该用户的视频...

I'm looking for something like the YouTube feeds you can get here: https://gdata.youtube.com/feeds/api/users/mrromandiaz/uploads?max-results=10 (I've pointed this at my account, but the username "mrromandiaz" can be replaced with any username to retrieve that user's videos...

问题是,的SoundCloud提供类似的东西吗?我并不需要进行身份验证,或交或上传,或控制任何东西......刚刚获得用户的曲目列表,以显示他们的个人资料,而不诉诸默认播放器。

Question is, does Soundcloud offer anything similar? I don't need to authenticate, or post, or upload, or control anything... just get user's track lists to show on their profiles, without resorting to the default player.

推荐答案

是的,这个API终点是 /用户/ {USER_ID} /曲目。如果您没有用户ID,但只有自己的用户名(永久),您可以使用 /决心终端来获取用户数据,包括它们的ID。

Yep, the API endpoint is at /users/{user_id}/tracks. If you don't have the user id, but only their username (permalink), you can use the /resolve endpoint to get the user data, including their id.

在这里的文档:用户资源这里的解决

Documentation here: user resource and here resolve.

这篇关于掌握的SoundCloud API特定用户的歌曲列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆