简体   繁体   English

SoundCloud Api - 如何制作(设置)播放列表收藏夹?

[英]SoundCloud Api - How to make (set) playlists favorites?

Is there any way to set playlist favorites in SoundCloud 有没有办法在SoundCloud中设置播放列表收藏夹

For Track Favorites i am using 对于我正在使用的曲目收藏夹

 SC.put('/me/favorites/'+track_id);

but its not working in playlist. 但它不适用于播放列表。 It seems that "/favorites" only shows tracks and no playlists? 似乎“/ favorites”只显示曲目而没有播放列表? Maybe there is another way to check if a playlist was marked as "like", but I did not find anything useful. 也许有另一种方法来检查播放列表是否标记为“喜欢”,但我没有找到任何有用的东西。

When Playlist getting error 播放列表收到错误时

{"errors":[{"error_message":"404 - Not Found"}]}

Thanks in advance. 提前致谢。

This would work. 这会奏效。 Added callback for debugging. 添加了回调以进行调试。

SC.put('/e1/me/playlist_likes/' + playlist_id, function(data, err) {
    if(err) {
        alert(err.message);
    }
    console.log(data);
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM