Closed abelsonlive closed 9 years ago
The error your getting is because the value you are using is a legacy ApiKey not an Access Token. See http://dev.bitly.com/authentication.html for details on how to obtain an OAuth Access Token.
Shortcut for anybody who wants to skip to read the doc.
As noted by jehiah, the easiest way is to refer to the doc, i.e.:
1.) type into your shell
curl -u "username:password" -X POST "https://api-ssl.bitly.com/oauth/access_token"
2.) replace that "R_.." depreciated token
3.) don't post tokens on a forum
I'm continually getting this error when I try to shorten a url. My code is as follows:
Which returns this traceback:
I'm assuming it's not the library, but nothing seems to work (even repeatedly resetting my access token)