2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
mpalmer-sps
7 years agoExplorer | Level 3
HTTP Request in C# using WebClient
I'm trying to get the contents of a folder for downloading from Dropbox in C# using the HTTP libraries. So far I've been trying to use a console application project in Visual Studio but don't seem to...
Greg-DB
Dropbox Community Moderator
7 years agoTo list files in a folder, you should use /2/files/list_folder and /2/files/list_folder/continue. To download files, you should use /2/files/download.
If an API call fails, the response will contain an error. What response body are you getting back?
mpalmer-sps
7 years agoExplorer | Level 3
Thanks Greg, I'm getting a 400 Error (Bad Request) . However, I'm able to use the same parameters and headers in RestMan via Chrome but I don't "fool" the Server into thinking this is coming from a Browser.
Is there a functional code sample using C# and HTTP for DropBox?
- mpalmer-sps7 years agoExplorer | Level 3
RestMan setup
Above is a Restman call that gives me a cursor - so I'm trying to replicate that request in code.
- Greg-DB7 years ago
Dropbox Community Moderator
We recommend just using the official .NET SDK, so we don't have a sample for doing this directly.
Anyway, the error information you shared is just the status code/line. The response body should contain a more useful error message. Checking the response body is generally the best first step in debugging these. Can you print that out? Thanks in advance!- mpalmer-sps7 years agoExplorer | Level 3
It looks like the parameters I'm sending are not in JSON format (see below):
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!