我正在使用 Python soundcloud API 在我的 Web 应用程序中实现经过身份验证的用户的 soundcloud 视频。我遵循了这些步骤http://developers.soundcloud.com/docs#authentication,这是我第一次让一切正常。我刚从一开始就再次尝试了这些事情,现在我收到了HTTPError: 401 Client Error on this commandcurrent_user = client.get('/me')
我可以展示我已经完成的步骤。请检查此https://gist.github.com/2945075
我收到此错误:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/soundcloud-0.3-py2.7.egg/soundcloud/client.py", line 129, in _request
return wrapped_resource(make_request(method, url, kwargs))
File "/usr/local/lib/python2.7/dist-packages/soundcloud-0.3-py2.7.egg/soundcloud/request.py", line 180, in make_request
result.raise_for_status()
File "/usr/local/lib/python2.7/dist-packages/requests-0.10.1-py2.7.egg/requests/models.py", line 799, in raise_for_status
raise HTTPError('%s Client Error' % self.status_code)
HTTPError: 401 Client Error
我怎样才能让这些东西发挥作用?谁能指导我?谢谢!