Reputation: 702
Whenever I try to resolve a url to get an id for a song, it returns a 401 error. My client works fine for other operations (GET: /me, POST: /me/followings/[id]). Here's the code I'm using with the soundcloud gem:
client.get('/resolve', url: "http://soundcloud.com/stuart-mckeown/darius-bassiray-consortium-of")
Upvotes: 4
Views: 556
Reputation: 3094
This took me a little while to figure out, but you need to send the client id along as well:
client.get('/resolve', :url => url, :client_id => ENV['SOUNDCLOUD_ID'])
Upvotes: 2