dncrht / imgur

Ruby interface to the Imgur's authenticated API
MIT License
35 stars 13 forks source link

Rake imgur:authorize #1

Closed asithade closed 10 years ago

asithade commented 10 years ago

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 commented 10 years ago

+1

aelor commented 10 years ago

+1 Me too getting the same error

dncrht commented 10 years ago

:+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

aelor commented 10 years ago

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 commented 10 years ago

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

dncrht commented 9 years ago

It works with v3 now

daraul commented 9 years ago

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 commented 9 years ago

@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 commented 9 years ago

It should be fixed now, in version 3.0.0

daraul commented 9 years ago

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

dncrht commented 9 years ago

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