<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C# API call &amp;quot;https://api.dropboxapi.com/2/files/list_folder&amp;quot; 400 (Bad Request) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285417#M17482</link>
    <description>Can you print out the response body? It should contain a more useful error message.</description>
    <pubDate>Thu, 19 Jul 2018 13:22:33 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-07-19T13:22:33Z</dc:date>
    <item>
      <title>C# API call "https://api.dropboxapi.com/2/files/list_folder" 400 (Bad Request)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285378#M17473</link>
      <description>&lt;P&gt;I am getting (400) Bad Request from the below call in c#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string Url = "https://api.dropboxapi.com/2/files/list_folder";&lt;BR /&gt;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);
            }&lt;/PRE&gt;&lt;P&gt;Not sure why it is giving 404. I searched online without any solution to this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string datastring = "path=";&lt;BR /&gt;string datastring = "path=''";&lt;/PRE&gt;&lt;P&gt;It also not working&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285378#M17473</guid>
      <dc:creator>frphotos</dc:creator>
      <dc:date>2019-05-29T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: C# API call "https://api.dropboxapi.com/2/files/list_folder" 400 (Bad Request)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285417#M17482</link>
      <description>Can you print out the response body? It should contain a more useful error message.</description>
      <pubDate>Thu, 19 Jul 2018 13:22:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285417#M17482</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-19T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: C# API call "https://api.dropboxapi.com/2/files/list_folder" 400 (Bad Request)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285509#M17491</link>
      <description>&lt;P&gt;Thanks Greg,&lt;/P&gt;&lt;P&gt;I scrapped the idea of using the API call. Instead I am using the .Net SDK method to call the api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 05:09:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-API-call-quot-https-api-dropboxapi-com-2-files-list-folder/m-p/285509#M17491</guid>
      <dc:creator>frphotos</dc:creator>
      <dc:date>2018-07-20T05:09:09Z</dc:date>
    </item>
  </channel>
</rss>

