Hi!
I have a very basic issue using this gem and I haven't figure out yet what is actually wrong. Maybe someone had the same problem?
So, configuration is:
rails (2.3.11)
ruby-1.9.2-p290
oauth (0.4.5)
dropbox (1.3.0)
(...)
controller action fails at this line (yes, very first, APP_KEY and APP_SECRET are the values obtained at dropbox pages):
dropbox_session = Dropbox::Session.new(APP_KEY, APP_SECRET)
it results with:
401 Unauthorized
and application trace...
.../gems/oauth-0.4.5/lib/oauth/consumer.rb:219:in 'token_request'
.../gems/oauth-0.4.5/lib/oauth/consumer.rb:139:in 'get_request_token'
.../gems/dropbox-1.3.0/lib/dropbox/session.rb:70:in 'initialize'
.../app/controllers/files_controller.rb:94:in 'new'
.../app/controllers/files_controller.rb:94:in 'authorize'
when am trying to initialize session using dropbox_sdk.rb file things are working (but I prefer using gems)
what am I doing wrong? can someone give me a hint because I am running out of ideas!
Thanks a lot! ;)