Closed asithade closed 10 years ago
+1
+1 Me too getting the same error
:+1: It seemed the rake task was not included by Rails. I've fixed that.
:-1: However, now another error appears further on, with the authentication. They changed the API to version 3 and deprecated version 2 which is the one I target. I'm working on it too https://github.com/dncrht/imgur/issues/2
yes and the authorizing urls have changed from
https://api.imgur.com/oauth/addclient
https://api.imgur.com/oauth/authorize
https://api.imgur.com/oauth/token
to https://api.imgur.com/oauth2/addclient https://api.imgur.com/oauth2/authorize https://api.imgur.com/oauth2/token
Thanks @aelor , I've seen those at https://api.imgur.com/oauth2 . I'm working on it
It works with v3 now
I'm still getting this error. I've even tried gem 'imgurapi', :git => 'git://github.com/dncrht/imgur.git'
, but that didn't work. Can you help me out?
@daraul you're right. I usually get the auth from the command line while developing. I'll prepare a fix to make it work on Rails projects. Thanks for reporting
It should be fixed now, in version 3.0.0
Thanks!
gem 'imgurapi', :git => 'git://github.com/dncrht/imgur.git'
seems to work just fine, but gem 'imgurapi'
didn't.
It has to work. If it doesn't, it has to be because your Gemfile.lock
is locked to the previous imgurapi version.
Just upgrade to 3.0.0
When running $ rake imgur:authorize APP_KEY='Consumer Key' APP_SECRET='Consumer Secret' you get the following error:
Don't know how to build task 'imgur:authorize'