问题
I am using dropbox-js to access a user's dropbox files. Please note that I am very new to this...
What I need to do, is to access existing files using dropbox-js. As I understand it, the pullChanges
method should be used for this. This is how I currently have it:
client.pullChanges(null, function(error, results) {
if (error) {
return showError(error);
}
alert("Dropbox contains: " + results.shouldPullAgain); //just to test that something happens
});
I'm not sure if this is the correct way to make use of pullChanges
, and then I need to know how to use results
to actually get the file/folder information??
来源:https://stackoverflow.com/questions/24419338/how-to-use-the-dropbox-js-pullchanges-method-to-get-a-file-list-of-existing-file