Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake imgur:authorize #1

Closed
asithade opened this issue Jan 22, 2014 · 11 comments
Closed

Rake imgur:authorize #1

asithade opened this issue Jan 22, 2014 · 11 comments
Labels

Comments

@asithade
Copy link

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'

@albertobissacco
Copy link

+1

@aelor
Copy link

aelor commented May 23, 2014

+1 Me too getting the same error

@dncrht
Copy link
Owner

dncrht commented May 26, 2014

👍 It seemed the rake task was not included by Rails. I've fixed that.

👎 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 #2

@dncrht dncrht added the bug label May 26, 2014
@aelor
Copy link

aelor commented May 27, 2014

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

@dncrht
Copy link
Owner

dncrht commented May 27, 2014

Thanks @aelor , I've seen those at https://api.imgur.com/oauth2 .
I'm working on it

@dncrht dncrht closed this as completed Jun 1, 2014
@dncrht
Copy link
Owner

dncrht commented Jul 2, 2015

It works with v3 now

@daraul
Copy link

daraul commented Aug 4, 2015

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?

@dncrht
Copy link
Owner

dncrht commented Aug 4, 2015

@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

@dncrht
Copy link
Owner

dncrht commented Aug 6, 2015

It should be fixed now, in version 3.0.0

@daraul
Copy link

daraul commented Aug 6, 2015

Thanks!
gem 'imgurapi', :git => 'git://github.com/dncrht/imgur.git' seems to work just fine, but gem 'imgurapi' didn't.

@dncrht
Copy link
Owner

dncrht commented Aug 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants