1
有谁知道如何收藏使用SoundCloud API的私人曲目?通过SoundCloud API收藏私人曲目
这是我到目前为止。
SC.put('/me/favorites/1234567', function(track,error){alert(error.message)})
这适用于轨道公开时,但当它的私人我得到一个404/401错误。
有谁知道如何收藏使用SoundCloud API的私人曲目?通过SoundCloud API收藏私人曲目
这是我到目前为止。
SC.put('/me/favorites/1234567', function(track,error){alert(error.message)})
这适用于轨道公开时,但当它的私人我得到一个404/401错误。
只要你有权访问专用轨道,你应该能够喜欢它。注意,这意味着,或者:
只要任一这两个的条件得到满足,你将能够喜欢一首歌曲。请注意,当然,您还必须先允许用户先认证:
SC.initialize({
client_id: 'foo',
redirect_uri: 'http://example.com/callback.html'
});
SC.connect(function(me) {
SC.put('/me/favorites/53919056', function(response, error) {
// response.status will equal "201 - Created"
});
});