Questions tagged «soundcloud»

3
Soundcloud API /流端点产生401错误
我正在尝试编写一个反应本机应用程序,该应用程序将流化SoundCloud中的某些曲目。作为测试,我一直在使用python来使用API​​,并且能够发出请求以解析URL,提取播放列表/曲目以及我需要的所有其他内容。 话虽如此,当向任何给定轨道的stream_url请求时,我收到401错误。 当前有问题的网址是:https : //api.soundcloud.com/tracks/699691660/stream?client_id=PGBAyVqBYXvDBjeaz3kSsHAMnr1fndq1 我已经尝试了没有?client_id ...的问题,我尝试替换了?使用&,我尝试获取另一个client_id,并使用allow_redirects将它作为true和false进行了尝试,但是似乎没有任何效果。任何帮助将不胜感激。 每个轨道的streamable属性为True,因此它不应该是权限问题。 编辑: 经过一些研究,我发现了一个半成功的解决方法。API的/ stream端点仍然无法使用,但是如果将目标端点更改为http://feeds.soundcloud.com/users/soundcloud:users,它将为您提供RSS提要(大部分)与使用tracks或playlists API端点所获得的相同。 其中包含的链接可以流式传输。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.