Currently, I am developing a service that utilizes the SoundCloud Javascript SDK 3.0, and I seem to be encountering issues with the PUT methods.
Every call I make results in an HTTP error code of 401 Unauthorized.
Below is my JavaScript code, which closely resembles the example provided in the SDK documentation:
SC.initialize({
client_id: 'MY_CLIENT_ID',
redirect_uri: 'http://example.com/callback'
});
SC.connect().then(function() {
SC.put('/me/followings/3207').then(function(){
alert('follow ok');
});
});
All PUT calls I attempt encounter the same issue, whether it's for me/favorites/TRACKID
, me/followings/USERID
, or me/track_reposts/TRACKID
...
Does anyone have any insights on how to resolve this problem?