How to use the dropbox-js pullChanges method to get a file list of existing files

余生颓废 提交于 2019-12-12 05:41:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!