Closed (fixed)
Project:
Backup and Migrate Dropbox
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Sep 2010 at 17:48 UTC
Updated:
3 Oct 2013 at 13:08 UTC
Jump to comment: Most recent file
Comments
Comment #1
alonpeer commentedAnother possible library to be used: http://code.google.com/p/dropbox-php/
Comment #2
alonpeer commentedI'm not good with patches and stuff.
In any case, here's a prototype I created that implements this using the Dropbox Uploader library.
And that's it, you are ready to go.
NOTICE: The Dropbox Uploader library only supports file uploads and not the full Dropbox API via OAuth. I chose to use it because it was quick and easy, and it doesn't involve any special PEAR libraries etc. like the Google Code implementation.
If someone can create a patch from this, I would be grateful. Also, any comments are welcome.
Comment #3
alonpeer commentedComment #4
alonpeer commentedOK, I give up. Here's my patch.
Comment #5
danny englanderSubscribing
Comment #6
alonpeer commentedMoving this to 6.x-2.x-dev, maybe this way it'll get some attention.
Comment #7
alonpeer commentedNo attention...?
Comment #8
ronan commentedThanks for the hard work on this. Since the dropbox module promises API support, I'd love to see a solution that leverages the work done there, especially if third party libraries are required for this to work.
Comment #9
AdrianB commentedSubscribing.
Comment #10
JayKayAu commentedThanks, this looks very interesting. Subscribing...
Comment #11
meba commentedhttps://www.dropbox.com/developers/docs#authentication-for-mobile-devices
Mobile authentication is done using a call named token that's in the Mobile API specification section. Token takes a user's username and password and returns a working access token/secret pair to your application that you can use from then on. It's a relatively simple process, but with one caveat: you cannot store the user's password in your application. You can store a username for usability purposes or in case re-authentication is needed. However, there is no reason you should store their password.
In fact, because you are receiving a working OAuth access token for the user, there's really no need to store their username and password in your application at all. Simply store the tokens instead and use them in all of your subsequent calls. The Objective-C libraries in the SDK actually do this for you in order to make sure you get it right the first time.
It's worth mentioning here that the tokens given out via the mobile authentication process don't expire for ten years.
Comment #12
wundo commentedModule created, please take a look here: http://drupal.org/project/backup_migrate_dropbox
Comment #13
wundo commentedComment #14
BenK commentedKeeping track of this thread...
Comment #16
lukehan commentedreally useful and cool module, can't wait to try for my site
Comment #17
sandip choudhury commentedUseful module, please keep up updating!!!
Comment #18
hadi farnoud commentedplease add some guidance on the module page fgs
Comment #19
krak commentedIs version 6.x-2.x working? How config? I can't backup database to dropbox.