如何从 soundcloud 获取上传的曲目?
我在我的应用程序中实现了 Sound cloud api,将歌曲导出到 soundcloud。
现在,我想在我的应用程序中启动一个浏览器。该浏览器将允许用户浏览和收听已通过我的应用程序导出到 SoundCloud 的各种其他用户歌曲。 此外,歌曲列表不应包含未通过我的应用程序上传的曲目。
以下是使用类似功能的应用程序的屏幕截图:
我的应用程序中唯一的变化是我不需要会话列表。 请建议如何执行此操作。
I have implemented Sound cloud api in my app to export songs to soundcloud.
Now,I want to launch a browser in my app.This browser will allow the user to browse and listen to various other users songs that have been exported to SoundCloud through my app.
Also,the songlist should not include tracks which are not uploaded through my app.
The following is a screenshot from an app which uses similar functionality:
The only change in my app will be that I dont want the Sessions list.
Please suggest how to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的问题有了答案。松了口气.. :)
要首先获取应用程序 ID,应通过以下方式解析 url:
http://api.soundcloud.com/resolve?url=http://soundcloud.com/apps/{appName}
这样,您将获得您的应用程序 ID。
(有关Resolver的更多信息,可以参考链接:https://github.com/soundcloud /api/wiki/12-Resolver)
现在,您可以像这样获取使用您的应用程序创建的曲目:
http://api.soundcloud.com/apps/{app-id}/tracks
对于浏览器你看,这是要你自己定制的。它不是 SoundCloud 的标准。
I am with an answer for my question. wat a relief.. :)
To get the app id first, the url is to be resolved by:
http://api.soundcloud.com/resolve?url=http://soundcloud.com/apps/{appName}
With this, you will get your app id.
(For more on Resolver, can refer to the link : https://github.com/soundcloud/api/wiki/12-Resolver)
Now, you can get tracks created with your app like this:
http://api.soundcloud.com/apps/{app-id}/tracks
For the browser look, it is to be customised on your own. Its not a standard from SoundCloud.