getting 403: Forbidden- When I call getObjectFromUrl Method

12 views
Skip to first unread message

Ram Ganesh

unread,
Oct 3, 2015, 1:35:09 AM10/3/15
to Rdio API

Hi all,

I get a 403 forbidden when trying to use the getObjectFromUrl method.

from rdio import Rdio

rdio_credentials = ('CONSUMER_ID', 'CONSUMER_SECRET')

rdio = Rdio((rdio_credentials)) # passing the tuple object
rdio.call('getObjectFromUrl', {'url': 'http://rd.io/x/xl0ASNYtIES-9A/'})


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "rdio.py", line 88, in call
    return json.loads(self.__signed_post('http://api.rdio.com/1/', params))
  File "rdio.py", line 58, in __signed_post
    res = urlopen(req)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
Reply all
Reply to author
Forward
0 new messages