zendesk/dropbox-api

Optional asynchronous requests to Dropbox (Faraday + em-http-request)

Closed this issue · 1 comments

How about using faraday with faraday_middleware instead of the oauth gem? This would allow people who want to make their application async to use em-http-request while letting the rest use the standard Net::HTTP adapter.

It's just a suggestion, but I'd like to know what you think about it before tinkering with it. Right now I've tried to replace TCPSocket but it's not a very elegant solution and I'm afraid it might get me in trouble later on.

I have a working prototype (all the tests pass, authorization works):
https://github.com/jgonera/dropbox-api/tree/faraday

I got rid of the oauth gem completely, but I think that instead of including the OAuth implementation in dropbox-api I should write a separate gem which could be a partially API-compatible replacement for oauth-ruby.