Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I am getting (400) Bad Request from the below call in c#.
string Url = "https://api.dropboxapi.com/2/files/list_folder";
using (WebClient client = new WebClient()) { NameValueCollection values = new NameValueCollection(); string datastring = "path="; client.Headers.Add("Authorization", "Bearer MYTOKEN"); client.Headers.Add("Content-Type", "application/json"); string retval = client.UploadString(Url, "POST", datastring); }
Not sure why it is giving 404. I searched online without any solution to this problem.
I changed the
string datastring = "path=";
string datastring = "path=''";
It also not working
Thanks Greg,
I scrapped the idea of using the API call. Instead I am using the .Net SDK method to call the api.
Thanks for the help.
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
Sound good? Let's get started.Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!