Soundcloud Resolve端点返回“SoundCloud :: ResponseError:SoundCloud :: ResponseError”,即使文档中给出了测试用例。
require 'soundcloud'
#create client with your app's credentials
client = Soundcloud.new(:client_id => 'YOUR_CLIENT_ID')
# a permalink to a track
track_url = 'http://soundcloud.com/forss/voca-nomen-tuum'
# resolve track URL into track resource
track = client.get('/resolve', :url => track_url)
# result: "SoundCloud::ResponseError: SoundCloud::ResponseError"
其他端点工作正常。我错过了什么,还是这样下来了?
答案 0 :(得分:2)
首先要直接检查端点。这在浏览器中工作正常:
问题出现在代码中。