<?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: Error in call to API function &amp;quot;files/list_folder&amp;quot;: request body: unknown field 'Path' in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422598#M22650</link>
    <description>&lt;P&gt;Dropbox API v2 parameter names are case-sensitive. The parameter you're trying to use on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt; is named "path", so you'll need to specify "path" instead of "Path".&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 14:20:31 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-05-21T14:20:31Z</dc:date>
    <item>
      <title>Error in call to API function "files/list_folder": request body: unknown field 'Path'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422457#M22647</link>
      <description>&lt;P&gt;I have a sample WinDev code below which login to Dropbox and obtain a Token and try to list the files/folder in the root. ie Path = "".&lt;/P&gt;
&lt;P&gt;when it gets to the line "HTTPresponse is httpResponse = HTTPSend(req)", the request comes back with Error in call to API function "files/list_folder": request body: unknown field 'Path', even if you enter a path like apps/&amp;lt;appname&amp;gt;/&amp;lt;foldername&amp;gt; it error out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If someone can point out what the issue is. That will be most appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Example used to retrieve a token to perform a request on DropBox&lt;BR /&gt;OAuth2Params is OAuth2Parameters&lt;BR /&gt;OAuth2Params..ClientID = "&amp;lt;ClientId from App&amp;gt;"&lt;BR /&gt;OAuth2Params..ClientSecret = "&amp;lt;ClientSecret from App&amp;gt;"&lt;BR /&gt;OAuth2Params..AuthURL = "&lt;A href="https://www.dropbox.com/oauth2/authorize" target="_blank" rel="noopener"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt;"&lt;BR /&gt;OAuth2Params..TokenURL = "&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt;"&lt;BR /&gt;OAuth2Params..RedirectionURL = "http://localhost:56207/"&lt;BR /&gt;OAuth2Params..AdditionalParameters = "force_reapprove=false"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Ask for authentication: opens the login window&lt;BR /&gt;MyToken is AuthToken = AuthIdentify(OAuth2Params)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Request authenticated on a DropBox API&lt;BR /&gt;req is httpRequest&lt;BR /&gt;req..Method = httpPost&lt;BR /&gt;req..URL = "&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;"&lt;BR /&gt;req..AuthToken = MyToken // Authentication token&lt;BR /&gt;req..ContentType = "application/json"&lt;BR /&gt;vAPIParam is Variant&lt;BR /&gt;vAPIParam.Path = "" //Tried entering a path or leave blank but encounter an error&lt;BR /&gt;vAPIParam.recursive = False&lt;BR /&gt;vAPIParam.include_media_info = False&lt;BR /&gt;vAPIParam.include_deleted = False&lt;BR /&gt;vAPIParam.include_has_explicit_shared_members = False&lt;BR /&gt;req..Content = VariantToJSON(vAPIParam)&lt;/P&gt;
&lt;P&gt;HTTPresponse is httpResponse = HTTPSend(req)&lt;BR /&gt;let Data = JSONToVariant(HTTPresponse..Content)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Request&lt;BR /&gt;&amp;lt;httpRequest&amp;gt; URL="&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;" UserAgent="SecureFile" Content={ "Path":"", "recursive":false, "include_media_info":false, "include_deleted":false, "include_has_explicit_shared_members":false } ContentType="application/json" User="" Password="" Method=2 IgnoreError=0 Timeout=20&amp;nbsp;000 DownloadProgress=&amp;lt;httpProgress&amp;gt; UploadProgress=&amp;lt;httpProgress&amp;gt; ConnectionTimeout=0 AuthToken=&amp;lt;AuthToken&amp;gt; VersionSSL=0 Destination="" ProcedureTrace= ClientCertificate= ClientCertificatePassword="" MaxUploadRate=-1 MaxDownloadRate=-1 Header=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Response&lt;BR /&gt;&amp;lt;httpResponse&amp;gt; Content=Error in call to API function "files/list_folder": request body: unknown field 'Path' RoughHeader="HTTP/1.1 400 Bad Request&amp;lt;CR&amp;gt;Server: nginx&amp;lt;CR&amp;gt;Date: Thu, 21 May 2020 02:31:17 GMT&amp;lt;CR&amp;gt;Content-Type: text/plain; charset=utf-8&amp;lt;CR&amp;gt;Transfer-Encoding: chunked&amp;lt;CR&amp;gt;Connection: close&amp;lt;CR&amp;gt;Content-Security-Policy: sandbox; frame-ancestors 'none'&amp;lt;CR&amp;gt;X-Dropbox-Request-Id: b3119f3ab3741ecf437d1bccbdffed88&amp;lt;CR&amp;gt;X-Envoy-Upstream-Service-Time: 82&amp;lt;CR&amp;gt;X-Frame-Options: DENY&amp;lt;CR&amp;gt;X-Content-Type-Options: nosniff&amp;lt;CR&amp;gt;Content-Disposition: attachment; filename='error'&amp;lt;CR&amp;gt;&amp;lt;CR&amp;gt;" StatusCode=400 DescriptionStatusCode="Bad Request" ContentType="text/plain; charset=utf-8" Header=&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:22:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422457#M22647</guid>
      <dc:creator>Gary_Boxer</dc:creator>
      <dc:date>2020-05-21T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/list_folder": request body: unknown field 'Path'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422598#M22650</link>
      <description>&lt;P&gt;Dropbox API v2 parameter names are case-sensitive. The parameter you're trying to use on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt; is named "path", so you'll need to specify "path" instead of "Path".&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 14:20:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422598#M22650</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-21T14:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/list_folder": request body: unknown field 'Path'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422810#M22653</link>
      <description>&lt;P&gt;Thanks, Greg, I have changed the path from "Path" to "path" and it is returning the list of files from the folder. Really appreciate your quick response and spotting the error. Will remember that parameters are case-sensitive.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 05:14:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-list-folder-quot/m-p/422810#M22653</guid>
      <dc:creator>Gary_Boxer</dc:creator>
      <dc:date>2020-05-22T05:14:46Z</dc:date>
    </item>
  </channel>
</rss>

