<?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: Get list of files in folders inside shared folders in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/403426#M22009</link>
    <description>&lt;P&gt;Finally got this work after an hour. Dropbox API has extremely poor documentation.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 20:30:18 GMT</pubDate>
    <dc:creator>amm98d</dc:creator>
    <dc:date>2020-03-20T20:30:18Z</dc:date>
    <item>
      <title>Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278501#M16681</link>
      <description>&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;Hi there,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;I am having a lot of trouble getting the contents of &lt;STRONG&gt;shared folders&lt;/STRONG&gt; and the content of &lt;STRONG&gt;folders within shared folders.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;Firstly, for the shared folder, according to the API I should be able to use &lt;U&gt;&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;&lt;/U&gt; with &lt;STRONG&gt;"path": "id:{shared folder id}", &lt;/STRONG&gt;however this returned a `path not found`.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;So I had to get the &lt;STRONG&gt;preview url&lt;/STRONG&gt; in the metadata of the shared folder, then use &lt;U&gt;&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;&lt;/U&gt; with &lt;STRONG&gt;"path": "" &lt;/STRONG&gt;and &lt;STRONG&gt;"shared_link":{"url": "{shared link}" &lt;/STRONG&gt;I thought this was a bit of an unusual workaround.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;Now for each file in the shared folder I &lt;STRONG&gt;can't access those using &lt;/STRONG&gt;&lt;U&gt;&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;&lt;/U&gt; with their ids, and they don't have shared links.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;My questions: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;a) Is it possible to access shared folder content via the Dropbox API?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" face="helvetica"&gt;b) If I can do this with a path, what is the path to shared folders? It's not relative to the root directory.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278501#M16681</guid>
      <dc:creator>havetoregister</dc:creator>
      <dc:date>2019-05-29T09:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278506#M16682</link>
      <description>&lt;P&gt;Yes, you can list the contents of shared folders mounted in an account using the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;] endpoints like any other folder. You have a few options for doing so:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;by full path in the 'path' parameter, e.g.: "/path/to/shared/folder"&lt;/LI&gt;
&lt;LI&gt;by folder ID in the 'path' parameter, e.g.: "id:abcd1234" (where 'id:abcd1234' is the 'id' for the folder)&lt;/LI&gt;
&lt;LI&gt;by shared folder ID as&amp;nbsp;a namespace ID in the 'path' parameter, e.g.: "ns:12345678" (where '12345678' is a shared folder ID)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It sounds like you're combining the last two, i.e., using the shared folder ID as a normal file/folder ID, which won't work. You can find some more information in &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;the Namespace Guide&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the paths and IDs for any items in the account, you can start by calling&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt; for root, supplying the empty string "" as the 'path' parameter.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 18:38:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278506#M16682</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-31T18:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278582#M16685</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;"by full path in the 'path' parameter, e.g.: "/path/to/shared/folder""&lt;/EM&gt;
&lt;UL&gt;
&lt;LI&gt;What is the path to a shared folder relative to the root? I can't get this information in the shared folder metadata.&amp;nbsp; You stated I could get the paths and IDs for any items in the account by "&lt;EM&gt;calling&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank" rel="noopener noreferrer"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank" rel="noopener noreferrer"&gt;/continue&lt;/A&gt;] for root, supplying the empty string "" as the 'path' parameter.&lt;/EM&gt;" but this doesn't display shared folders.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;"by folder ID in the 'path' parameter, e.g.: "id:abcd1234" (where 'id:abcd1234' is the 'id' for the folder)"&lt;/EM&gt;
&lt;UL&gt;
&lt;LI&gt;I've done this with the ids of folders inside shared folders and I get the "&lt;STRONG&gt;path/not_found/&lt;/STRONG&gt;" error.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;"by shared folder ID as&amp;nbsp;a namespace ID in the 'path' parameter, e.g.: "ns:12345678" (where '12345678' is a shared folder ID)"&lt;/EM&gt;
&lt;UL&gt;
&lt;LI&gt;I've done this with the shared_folder_id and I get the "&lt;STRONG&gt;path/not_found/&lt;/STRONG&gt;" error&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me how to get a) the contents of a shared folder, and b) the contents of the folders inside a shared folder on a Dropbox Account (not a Dropbox for Business Account) via the HTTP API? The instructions you've given me are not working so is there a problem with my account?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 08:52:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278582#M16685</guid>
      <dc:creator>havetoregister</dc:creator>
      <dc:date>2018-06-01T08:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278620#M16694</link>
      <description>&lt;P&gt;The path to a shared folder would be the 'path_lower' value for the FolderMetadata object for the folder, e.g., as returned by /2/files/list_folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The id of a folder would be the 'id' value&lt;SPAN&gt;&amp;nbsp;for the FolderMetadata object for the folder, e.g., as returned by /2/files/list_folder.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The shared folder ID would be the 'shared_folder_id' value for the FolderMetadata object for the folder, e.g., as returned by /2/files/list_folder.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These values should all be returned for the respective entries by&amp;nbsp;/2/files/list_folder, e.g., when you list the root folder as I mentioned in my last post. (Note that if your team is using &lt;A href="https://www.dropbox.com/help/business/team-space-overview" target="_blank"&gt;the "team space" configuration&lt;/A&gt;, and you're looking for folders in the team space itself, that will work slightly differently. You can find more information about that in &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;the Namespace Guide&lt;/A&gt;. I don't have any particular reason to believe that's relevant in your case given your posts, but I'm mentioning it just in case.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anyway, if things don't seem to be working properly, please feel free to share some sample code and output, e.g., for the /2/files/list_folder call for root, etc., so we can take a look. (You can &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open an API ticket&lt;/A&gt; with the details if you want to share privately instead.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:50:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/278620#M16694</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-01T15:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/279013#M16723</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using /2/files/list_folder only works if I access this through the shared link of a shared folder, (shared_link parameter with url, path set to empty string), and I still can't get access to the folders within that shared folder using this because they don't have shared links.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&lt;EM&gt; lower_path&lt;/EM&gt; of the shared folder does not display when I retrieve metadata with files/list_folder, nor with sharing/get_folder_metadata, so I cannot access the shared folders via path, can you tell me if there is a default path for shared folders relative to the root?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I notice both shared folders that I want to access have "&lt;STRONG&gt;is_inside_team_folder": true. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If shared folders are within team folders, does this mean that I cannot access them unless I have a Dropbox &lt;STRONG&gt;Business&lt;/STRONG&gt; API app key?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 07:25:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/279013#M16723</guid>
      <dc:creator>havetoregister</dc:creator>
      <dc:date>2018-06-05T07:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/279032#M16725</link>
      <description>&lt;P&gt;Hey Greg, this has been resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When setting up a Dropbox API Key for `App Folder` or `Full Access`, you don't have access to the Shared folders until the user manually Adds the folder to their Dropbox account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The account I was accessing had not done this. Issue resolved now. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your patience and help in trying to get me through this!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 09:58:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/279032#M16725</guid>
      <dc:creator>havetoregister</dc:creator>
      <dc:date>2018-06-05T09:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/403426#M22009</link>
      <description>&lt;P&gt;Finally got this work after an hour. Dropbox API has extremely poor documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 20:30:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/403426#M22009</guid>
      <dc:creator>amm98d</dc:creator>
      <dc:date>2020-03-20T20:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/473795#M24058</link>
      <description>&lt;P&gt;Hey &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/654223"&gt;@havetoregister&lt;/a&gt;&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;"Add to Dropbox" works for folders but any idea about shared files ?&lt;BR /&gt;Cuz they don't have this feature and while long polling or webhooks, Dropbox doesnt give the details of the file which was shared to the user.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 07:24:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/473795#M24058</guid>
      <dc:creator>apo1397</dc:creator>
      <dc:date>2020-11-27T07:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of files in folders inside shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/473949#M24074</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1379021"&gt;@apo1397&lt;/a&gt;&amp;nbsp;"Shared folders" and "shared files" work a bit differently unfortunately. You can't add or "mount" a shared file in an account like you can with a shared folder.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 16:58:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/m-p/473949#M24074</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-27T16:58:27Z</dc:date>
    </item>
  </channel>
</rss>

