Soundcloud / resolve端点坏了吗?

时间:2016-09-20 21:07:21

标签: ruby soundcloud

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"

其他端点工作正常。我错过了什么,还是这样下来了?

1 个答案:

答案 0 :(得分:2)

首先要直接检查端点。这在浏览器中工作正常:

http://api.soundcloud.com/resolve.json?url=http://soundcloud.com/forss/voca-nomen-tuum&client_id=YOUR_CLIENT_ID

问题出现在代码中。