<?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: v2 API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201449#M9496</link>
    <description>Thanks Greg K.&lt;BR /&gt;&lt;BR /&gt;Yes, I am using the correct access token and the /Apps/&amp;lt;app folder&amp;gt; has a folder named Recipes in it. I will try to use the list_folder interface. But I still don't understand why the "get_metadata" does not work. It was fine under the v1 interface.</description>
    <pubDate>Tue, 10 Jan 2017 18:47:51 GMT</pubDate>
    <dc:creator>Klaus A.</dc:creator>
    <dc:date>2017-01-10T18:47:51Z</dc:date>
    <item>
      <title>v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201443#M9491</link>
      <description>&lt;P&gt;I have an app that used to run fine on the v1 API using xmlhttp requests. Migrating the app to v2 I can't get anything except authorization to work. The app has read/write access to its own folder only.&lt;/P&gt;&lt;P&gt;For example: I want to get a list of the files/folders in&amp;nbsp;a folder named "Recipes" in my app folder:&lt;/P&gt;&lt;P&gt;I create an xmlhttp request (Browser based javascript) with&lt;/P&gt;&lt;P&gt;method: "POST",&lt;/P&gt;&lt;P&gt;url: "&lt;A href="https://api.dropbox.com/2/files/get_metadata" target="_blank"&gt;https://api.dropbox.com/2/files/get_metadata&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;Request header: "Content-Type: "application/json",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the posted data body is a javascript string:&lt;/P&gt;&lt;P&gt;{"path":"/Recipes"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always get a 409 error with "/path/not found" even though I can see the folder clearly in my Dropbox app.&lt;/P&gt;&lt;P&gt;If I try to get the file/folder list of my app's folder I get a 400 error with the message "the root folder is not supported."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201443#M9491</guid>
      <dc:creator>Klaus A.</dc:creator>
      <dc:date>2019-05-29T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201447#M9494</link>
      <description>&lt;P&gt;You mentioned your app has an app folder, so can you double check that the app folder itself contains a "Recipes" folder in it? I.e., when you look at dropbox.com, that would be at /Apps/&amp;lt;app folder name/Recipes. Also, if you've registered multiple apps or used multiple accounts, make sure you're using an access token for the right app and account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, to list the contents of a folder, including root (which is the app folder for apps with the app folder permission) you should use the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/2/files/list_folder/continue&lt;/A&gt;&amp;nbsp;methods.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 18:38:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201447#M9494</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-10T18:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201449#M9496</link>
      <description>Thanks Greg K.&lt;BR /&gt;&lt;BR /&gt;Yes, I am using the correct access token and the /Apps/&amp;lt;app folder&amp;gt; has a folder named Recipes in it. I will try to use the list_folder interface. But I still don't understand why the "get_metadata" does not work. It was fine under the v1 interface.</description>
      <pubDate>Tue, 10 Jan 2017 18:47:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201449#M9496</guid>
      <dc:creator>Klaus A.</dc:creator>
      <dc:date>2017-01-10T18:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201451#M9497</link>
      <description>&lt;P&gt;Thanks! I can't seem to reproduce that issue though. This works correctly for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$.ajax({
    url: 'https://api.dropboxapi.com/2/files/get_metadata',
    type: 'POST',
    processData: false,
    data: JSON.stringify({"path": "/Recipes"}),
    contentType: 'application/json',
    headers: {
        "Authorization": "Bearer &amp;lt;APP FOLDER ACCESS TOKEN&amp;gt;"
    },
    success: function(data) {
        console.log(data);
    },
    error: function(data) {
        console.error(data);
    }

Object {.tag: "folder", name: "Recipes", path_lower: "/recipes", path_display: "/Recipes", id: "id:JmcDh3CS6tAAAAAAAAABCg"}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt;&amp;nbsp;showing the account and app folder with the Recipes folder, and the API call request/response with the unexpected result and we'll be happy to look into it specifically for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 18:58:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/201451#M9497</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-10T18:58:41Z</dc:date>
    </item>
  </channel>
</rss>

