cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Urgent Dropbox API V2 2/files/list_folder/continue

Urgent Dropbox API V2 2/files/list_folder/continue

syedsaadabbasi
Explorer | Level 3

Suddenly I am not getting any changed set details from server. I have uploaded new folders and files in once specific folder but 2/files/list_folder/continue always returning me null entries.

3 Replies 3

Re: Urgent Dropbox API V2 2/files/list_folder/continue

Greg-DB
Dropboxer
This is working properly for me. I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

- the name and version of the platform and SDK/library you are using
- the steps to reproduce the issue
- the full text of any error or output
- the relevant code snippet(s)

Re: Urgent Dropbox API V2 2/files/list_folder/continue

Syed Saad A.
Explorer | Level 4

Hello Greg 

Thank you for your prompt response. I am amazed that its working now. Can you please guide me how much time it would take to fetch changeset details from dropbox because sometimes it fetches quickly and sometimes it takes our breath away by not fetching files on time.
This is my piece of code which execute after every 5 minutes to get changes from server.

  var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.dropbox.com/2/files/list_folder/continue");
                httpWebRequest.Method = "POST";
                httpWebRequest.Headers.Add("Authorization: Bearer " + GeneratedAccessToken);
                httpWebRequest.ContentType = "application/json";

                using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
                {
                    string json = new JavaScriptSerializer().Serialize(new { cursor = cursor_ });
                    streamWriter.Write(json);
                }
                string responseBody = "";
                var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                    var result = streamReader.ReadToEnd();
                    responseBody = result;
                }

Re: Urgent Dropbox API V2 2/files/list_folder/continue

Greg-DB
Dropboxer

Did you set include_media_info=true on /2/files/list_folder (not /continue) when you called it to retrieved the cursor initially? If you requested media information, there can be a delay before new entries will be returned (including from /continue), while the media information is being extracted. If not, the entries should be available almost immediately.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Syed Saad A. Explorer | Level 4
What do Dropbox user levels mean?
Need more support?