Closed philgyford closed 8 years ago
Had this same problem, you need your API key, which is different. Head to https://bitly.com/a/your_api_key to get it.
Hi @philgyford,
Sorry for the huge delay on this. Before recently, the generic API key method didn't work using the gem. However, with version 0.10.0 you can configure the gem like so:
Bitly.configure do |config|
config.api_version = 3
config.access_token = "MYGENERICACCESSTOKEN"
end
and it will authenticate with your access token and not your login and password.
I am getting BitlyError: INVALID_ARG_ACCESS_TOKEN - '500' using latest 0.10.3, any idea?
Don't use the deprecated API key, use oAuth on Bitly settings.
@jianbo : How did you solve it? I am facing same issue that is INVALID_ARG_ACCESS_TOKEN - '500' with 1.1.1 also.
@philnash : I am facing INVALID_ARG_ACCESS_TOKEN - '500' with bitly 1.1.1 also. Would you please help?
Can you share the code you are using that is generating that error? It looks like an error coming from the Bitly API rather than the gem, though is probably how you are using it. I can't debug without an idea of what you're doing though.
Sorry, I must be doing something wrong, as I'm following the example but when trying to shorten a URL I keep getting an error. I do this:
That gets me:
Anything obvious I've done wrong?