Soundcloud API 401 error while resolving song / user url

Whenever I try to resolve the URL to get the identifier for the song, it returns error 401. My client works fine for other operations (GET: / me, POST: / me / followings / [id]). Here is the code I use with soundcloud gem:

client.get('/resolve', url: "http://soundcloud.com/stuart-mckeown/darius-bassiray-consortium-of") 
+4
source share
1 answer

It took me a while to figure out, but you also need to send the client id:

client.get('/resolve', :url => url, :client_id => ENV['SOUNDCLOUD_ID'])

+1
source

Source: https://habr.com/ru/post/1469068/


All Articles