Ponny
Ponny

Reputation: 702

Soundcloud API 401 error when resolving song/user url

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

Answers (1)

icco
icco

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

Related Questions