BenExile / Dropbox

UNMAINTAINED: PHP 5.3 SDK for the Dropbox REST API
MIT License
521 stars 134 forks source link

How to check of there is a token in DB? #57

Closed freemann closed 11 years ago

freemann commented 11 years ago

Is it possible, with Dropbox and DB support, if there is a token in the DB?

I ask this, because i want to now if i need to ask the user to attach with Dropbox or that i don't need to bother the user with this question because we already have a (working) token saved.

I hoped that "storage->get('request_token')" would give me a token OR returns false, so i could add some logic on what to do next. But storage->get('request_token'); also redirects me to the dropbox site.

Maybe you can make it here also possible to redirect of let the function return false? This gives the users (me and the others) more room to play with the user experience.

With regards

freemann commented 11 years ago

I moved to a other lib/class, please close this ticket.