You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
af11
3 years agoExplorer | Level 4
dbx.files_list_folder_continue(cursor)
Hi, When I use dropbox.files_list_folder_continue(), it returns this sort of thing to me: ListFolderResult(cursor='AAGFrYNdNFVvj-P1WPjcSIta4RG5MPP0MkUNGBqnduUowq2AZgFjW3D70O6j_c63VjG_qJ_5djJP5Rmgu...
- 3 years ago
af11 wrote:... In the documentation, it seemed to say that calling this method would return a json object, not this thing.
I would like to access the data it's returning but don't know how to.
...
Hi af11,
Yes and No!
I don't know what kind of documentation you have read, but seems you have mixed different things. When you call API access point 2/files/list_folder or 2/files/list_folder/continue, yes, resulting response body contains JSON formatted info about listed folder(s) content. Seems you aren't using direct call to API access points, but Python SDK instead. Isn't so?! 😜 There you are using provided functions/methods. In particular dropbox.dropbox_client.Dropbox's methods files_list_folder (initially probably) and files_list_folder_continue (to complete a long list, if any). Using any SDK the same information gets represented in corresponding native form. In the particular case result is represented as a ListFolderResult object. Here you can retrieve interested folder content by inspecting "entries" field. 😉 You may need to start once again from beginning (files_list_folder) since you might have touched the folder end, if you are not inspecting an empty folder. Read more carefully the applicable documentation, but not just so - something!
Hope this gives direction.
Здравко
3 years agoLegendary | Level 20
af11 wrote:... In the documentation, it seemed to say that calling this method would return a json object, not this thing.
I would like to access the data it's returning but don't know how to.
...
Hi af11,
Yes and No!
I don't know what kind of documentation you have read, but seems you have mixed different things. When you call API access point 2/files/list_folder or 2/files/list_folder/continue, yes, resulting response body contains JSON formatted info about listed folder(s) content. Seems you aren't using direct call to API access points, but Python SDK instead. Isn't so?! 😜 There you are using provided functions/methods. In particular dropbox.dropbox_client.Dropbox's methods files_list_folder (initially probably) and files_list_folder_continue (to complete a long list, if any). Using any SDK the same information gets represented in corresponding native form. In the particular case result is represented as a ListFolderResult object. Here you can retrieve interested folder content by inspecting "entries" field. 😉 You may need to start once again from beginning (files_list_folder) since you might have touched the folder end, if you are not inspecting an empty folder. Read more carefully the applicable documentation, but not just so - something!
Hope this gives direction.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,883 PostsLatest Activity: 8 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!