We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
MBUST
3 years agoExplorer | Level 3
When trying to list folder contents, error happens
Hello,
New to Dropbox API.
I can create folders and files, but when I try to list the contents of a folder, I get an error message. I'm particularly interested in getting the contents of...
- 3 years ago
I see you're supplying a folder path and not a shared link and are using app authentication on this /2/files/list_folder call, which can cause this 'path/unsupported_content_type' error.
When using app authentication, that is, with the app key and secret instead of an access token, you do not have access to an account directly. Using app authentication with /2/files/list_folder is instead meant for accessing the contents of a shared link.
So, you would need to either supply ashared_link
on the /2/files/list_folder call, or switch to using user authentication, that is, with an access token for an account.
Greg-DB
Dropbox Staff
I see you're supplying a folder path and not a shared link and are using app authentication on this /2/files/list_folder call, which can cause this 'path/unsupported_content_type' error.
When using app authentication, that is, with the app key and secret instead of an access token, you do not have access to an account directly. Using app authentication with /2/files/list_folder is instead meant for accessing the contents of a shared link.
So, you would need to either supply a shared_link
on the /2/files/list_folder call, or switch to using user authentication, that is, with an access token for an account.
MBUST
3 years agoExplorer | Level 3
Hello Greg!
Thanks for your help!!
I thought I had to use the type of authentication use in the documentation's example (as I recall reading somewhere else here), but I see now that using the token will do what I need. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 4 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!