RISCfuture / dropbox

An easy-to-use client library for the official Dropbox API.
MIT License
518 stars 46 forks source link

Expose access token #17

Closed igorw closed 14 years ago

RISCfuture commented 14 years ago

Before I pull, I'd just like to know why? What's the motivation for exposing the access token?

igorw commented 14 years ago

Sure. :)

When you have another app that needs to use the keys, there is currently no way to fetch them through this library (correct me if I'm wrong). By exposing the access_token method you can get access token/secret and pass them to your other app.

igorw commented 14 years ago

Bumping this.

RISCfuture commented 14 years ago

Done, sorry.

igorw commented 14 years ago

Great, thanks!

alphatester commented 13 years ago

How to reuse the access_token? I'm saving it in my db and then try to reuse it that way dropbox_session = Dropbox::Session.new('myappkey', 'myappsecret') dropbox_session.authorize(:access_token =>{ :token =>' userkey' ,:secret_token => 'usersecret'}) but I got a 403 error

RISCfuture commented 13 years ago

You should use the Dropbox::Session#set_access_token method to specify a custom access token and secret that you obtained from elsewhere.