Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
Peter K.23
10 years agoNew member | Level 1
How to get list of files in root folder or in any folder with API v2
Using the example below:
client.files.listFolder(path: "").response { response, error in
if let result = response {
print("Folder contents:")
for entry in result.entries {
print(entry.name)
returns nothing (or rather nil for the response var), and understanding this represents ROOT folder, and I get this error:
Bad Input: Error in call to API function "files/list_folder": request body: could not decode input as JSON
So ... I was able to upload a file, so the token is good, but any list, either files or shared, returns nothing. Guessing something not set correct either in the account or this api ... thanks for your help !
2 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
This is a bug in version 2.0.3 of the SwiftyDropbox library. Upgrade to the latest version, currently 3.0.0, and try again.
- Peter K.2310 years agoNew member | Level 1
Thanks for the update and I have confirmed that v3.0 is working great.
Thanks again.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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!