<?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: Cannot call filesDownload for entries in a sharedLink to a folder (get path_not_found) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416204#M22444</link>
    <description>&lt;P&gt;When calling&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_self" rel="noopener noreferrer"&gt;/2/sharing/get_shared_link_file&lt;/A&gt;, 'url' would be the shared link URL, and 'path' would be the relative path for the file you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for your example above, you could use:&lt;/P&gt;
&lt;P&gt;'url': '&lt;A href="https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0" target="_blank"&gt;https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0&lt;/A&gt;'&lt;/P&gt;
&lt;P&gt;'path': '/Papa Smurf.pro'&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2020 20:47:08 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-05-01T20:47:08Z</dc:date>
    <item>
      <title>Cannot call filesDownload for entries in a sharedLink to a folder (get path_not_found)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416165#M22433</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My use case is that I have a sharedLink to a folder where I'm not the owner and I'd like to build a little viewer for the contents of the that folder. I can get the list of files in a folder but not their contents. I believe I could accomplish this with a scraper, so it'd be nicer to do this in the API (and even without an access token at all since it's publicly accessible)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The URL to the sharedLink folder is:&amp;nbsp;&lt;A href="https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can open that incognito and see the files and download their contents in a browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;REPRO -&amp;nbsp;You can repro this as the not-folder-owner (aka anyone can repro this)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) In the Dropbox API explorer get an access token&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Call sharingGetSharedLinkMetdata with a sharedLink URL&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_shared_link_metadata" target="_blank" rel="noopener"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_shared_link_metadata&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Set url:&amp;nbsp;&lt;A href="https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Returns a folder with id &lt;SPAN&gt;id:zY8_f7IMoCgAAAAAAAIRmw&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4) Call filesListFolder with that sharedLink url&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder" target="_blank" rel="noopener"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Open the shared_link (optional)&amp;nbsp;disclosure thing and paste in the url:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That returns a response with a entries ala:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;{
  "entries": [
    {
      ".tag": "file",
      "name": "Papa Smurf.pro",
      "parent_shared_folder_id": "37786917",
      "id": "id:zY8_f7IMoCgAAAAAAAIRnQ",
      "client_modified": "2020-04-28T14:20:44Z",
      "server_modified": "2020-04-28T14:20:45Z",
      "rev": "5a45a8994a4ed02409525",
      "size": 94,
      "sharing_info": {
        "read_only": true,
        "parent_shared_folder_id": "37786917",
        "modified_by": "dbid:AAC7xJh2VcDvncsSSMKnV9xJNEFqtltu0i4"
      },
      "is_downloadable": true,
      "content_hash": "ddb599aaa5b2783c61da68e567979f62a36559fc1d46a2bdfc2641a055c3b1ad"
    },
    {
      ".tag": "file",
      "name": "Papa Smurf 2.pro",
      "parent_shared_folder_id": "37786917",
      "id": "id:zY8_f7IMoCgAAAAAAAIRnw",
      "client_modified": "2020-04-28T15:54:59Z",
      "server_modified": "2020-04-28T15:55:01Z",
      "rev": "5a45bdaae036402409525",
      "size": 86,
      "sharing_info": {
        "read_only": true,
        "parent_shared_folder_id": "37786917",
        "modified_by": "dbid:AAC7xJh2VcDvncsSSMKnV9xJNEFqtltu0i4"
      },
      "is_downloadable": true,
      "content_hash": "c4aaf32c5eb77ec622cc44797a206cb5cd8cee02216cd98773f4deb5dddfc138"
    }
  ],
  "cursor": "AAGH_lfzMqN8k2xRWEYojPGQIrsbS-653JiMpm_NsFP-bxdQ6XD34Yl79XSWXtLt6Olds7I7ByFNlcqsSj3aXzr2aDmqCWiKy0D7-BALOObMMmHWwrKMKZ5No7E2bRnzTG9qF-t5dGRIaB4mr5aCyFg-aq5M2Zm08s5DRmBDPnoK_31ckeEoe-V6U1BCiuhGMEa664tTyJbJsJU_p3szks0i2iRdTPgS75TsEcXWpEuL9IosLEx9RIwss1aK5zVEnJKJOJhujgtMY_sQXh4SYkWM48-KKvgHO-d53XEV5Saxu7FgPj--AyJGPxMUGd764yA",
  "has_more": false
}&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5) Try to download one of those files&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_download" target="_blank" rel="noopener"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_download&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;paste any of those entries ids from above (ala&amp;nbsp;id:zY8_f7IMoCgAAAAAAAIRnQ)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "error_summary": "path/not_found/...",
  "error": {
    ".tag": "path",
    "path": {
      ".tag": "not_found"
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;cc&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 17:57:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416165#M22433</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-05-04T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call filesDownload for entries in a sharedLink to a folder (get path_not_found)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416182#M22436</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt; endpoint only supports downloading files in the connected account, so this error is expected in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this use case, you'd instead need to use&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_self"&gt;/2/sharing/get_shared_link_file&lt;/A&gt; (sharingGetSharedLinkFile).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both of those only support "user authentication" though, so an access token is necessary. I'll pass this along as a feature request for support for calling without an access token,&amp;nbsp;but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option would be to download from the shared link itself using the "dl" parameter &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;documented here&lt;/A&gt;, but that doesn't offer a way to specify an get only a particular file from the linked folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I should note that scraping the&amp;nbsp;Dropbox web site is prohibited by&amp;nbsp;the terms, and subject to break without warning anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 20:01:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416182#M22436</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-01T20:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call filesDownload for entries in a sharedLink to a folder (get path_not_found)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416202#M22443</link>
      <description>&lt;P&gt;But `&lt;SPAN&gt;sharingGetSharedLinkFile` requires an URL and all I have in those entries is an `id` (and some other fields, but not `url`) - is there any other way I should go about this? Gracias!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 20:46:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416202#M22443</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-05-01T20:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call filesDownload for entries in a sharedLink to a folder (get path_not_found)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416204#M22444</link>
      <description>&lt;P&gt;When calling&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_self" rel="noopener noreferrer"&gt;/2/sharing/get_shared_link_file&lt;/A&gt;, 'url' would be the shared link URL, and 'path' would be the relative path for the file you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for your example above, you could use:&lt;/P&gt;
&lt;P&gt;'url': '&lt;A href="https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0" target="_blank"&gt;https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0&lt;/A&gt;'&lt;/P&gt;
&lt;P&gt;'path': '/Papa Smurf.pro'&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 20:47:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416204#M22444</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-01T20:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call filesDownload for entries in a sharedLink to a folder (get path_not_found)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416358#M22447</link>
      <description>&lt;P&gt;Thank you so much, totally works!&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 14:01:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-call-filesDownload-for-entries-in-a-sharedLink-to-a/m-p/416358#M22447</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-05-02T14:01:28Z</dc:date>
    </item>
  </channel>
</rss>

