<?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: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432028#M22855</link>
    <description>&lt;P&gt;It sounds like you accidentally moved a "}" when copying in your shared link. The "path" parameter should be a top-level parameter, not part of the "shared_link" parameter object.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 19:24:03 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-06-23T19:24:03Z</dc:date>
    <item>
      <title>Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/431914#M22850</link>
      <description>&lt;P&gt;Well I'm still at a loss.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the shared link to a folder that I need to check on a daily schedule to see if there's new files. The logic of which is all fine, but I just can't access anything below the initial shared link programatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really all I need to get is the URL for any subfolder ... but I'll be damned if there's an API call that will supply that information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I have tried with the API token provided by the &lt;A href="https://www.dropbox.com/developers/documentation/" target="_blank" rel="noopener"&gt;DB Dev Docs&lt;/A&gt; (auto).&lt;/LI&gt;
&lt;LI&gt;I have tried with my own token in place of that (to make the API call come from my account).&lt;/LI&gt;
&lt;LI&gt;I have tried all of the following and none can penetrate the barrier that is the second level of folders:
&lt;OL&gt;
&lt;LI&gt;get_shared_link_metadata&lt;/LI&gt;
&lt;LI&gt;get_folder_metadata&lt;/LI&gt;
&lt;LI&gt;list_received_files&lt;/LI&gt;
&lt;LI&gt;list_folder&lt;/LI&gt;
&lt;LI&gt;list_folders&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have access to the shared link, I have access to all the (3) subfolders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I note is that the URL changes once I enter the subfolder of the main shared link, and I'm unable to programattically&lt;/P&gt;
&lt;P&gt;get that to just launch either a new get_shared_link_metadata on the new URL, or list_folder to get its contents. So if we had a primary shared link of:&lt;/P&gt;
&lt;PRE&gt;https://www.dropbox.com/sh/aaa/bbb/&lt;/PRE&gt;
&lt;P&gt;Let's say that has a subfolder called "john", I can't resolve that via the API because the URL to the john folder is not:&lt;/P&gt;
&lt;PRE&gt;https://www.dropbox.com/sh/aaa/bbb/john&lt;/PRE&gt;
&lt;P&gt;The link, instead, is:&lt;/P&gt;
&lt;PRE&gt;https://www.dropbox.com/sh/aaa/ccc/john&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick breakdown of how I would desire this to work:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Stage 1:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;get_shared_link_metadata&lt;/EM&gt;&amp;nbsp;---&amp;gt; &lt;EM&gt;list_folder&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This works, and provides me with the contents of the shared folder, and the names and IDs of the subfolders.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Stage 2:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;UNKNOWN&lt;/EM&gt; &lt;/FONT&gt;---&amp;gt;&lt;EM&gt; list_folder&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This is the repeated stage (for each of the 3 subfolders), the &lt;FONT color="#FF0000"&gt;&lt;EM&gt;UNKNOWN&lt;/EM&gt; &lt;/FONT&gt;represents what I don't know, that should essentially be the equivalent of the get_shared_link_metadata ... except I don't have the right link for the subfolders, because they are changed each time.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 07:24:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/431914#M22850</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-06-24T07:24:33Z</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/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/431967#M22851</link>
      <description>&lt;P&gt;To list the contents of a folder nested inside a folder, where you only have the shared link for that top folder, you can use&amp;nbsp;/2/files/list_folder again with the original top-level shared link, but then specify the relative path of the nested folder (e.g. built from the returned 'name' fields), in the "path" parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a real example I just ran to illustrate this:&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"shared_link\": {\"url\": \"https://www.dropbox.com/sh/tpgtd066g1umb13/AACPWhKNrRujRZHM3p7vXP1Qa?dl=0\"}, \"path\": \"\"}"

# {
#   "entries": [
#     {
#       ".tag": "folder",
#       "name": "another folder",
#       "path_lower": "/public/another folder",
#       "path_display": "/Public/another folder",
#       "parent_shared_folder_id": "2448313264",
#       "id": "id:T9-uzcb3s4AAAAAAAAAAFw",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "2448313264",
#         "traverse_only": false,
#         "no_access": false
#       }
#     },
#     {
#       ".tag": "folder",
#       "name": "some folder",
#       "path_lower": "/public/some folder",
#       "path_display": "/Public/some folder",
#       "parent_shared_folder_id": "2448313264",
#       "id": "id:T9-uzcb3s4AAAAAAAAAAGw",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "2448313264",
#         "traverse_only": false,
#         "no_access": false
#       }
#     },
#     {
#       ".tag": "folder",
#       "name": "one more folder",
#       "path_lower": "/public/one more folder",
#       "path_display": "/Public/one more folder",
#       "parent_shared_folder_id": "2448313264",
#       "id": "id:T9-uzcb3s4AAAAAAAAAAHA",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "2448313264",
#         "traverse_only": false,
#         "no_access": false
#       }
#     },
#     {
#       ".tag": "file",
#       "name": "Getting Started.pdf",
#       "path_lower": "/public/getting started.pdf",
#       "path_display": "/Public/Getting Started.pdf",
#       "parent_shared_folder_id": "2448313264",
#       "id": "id:25N5ksooX-sAAAAAAAKbwQ",
#       "client_modified": "2015-01-30T22:53:09Z",
#       "server_modified": "2018-02-16T18:05:53Z",
#       "rev": "191ee4bb0",
#       "size": 249159,
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "2448313264",
#         "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE"
#       },
#       "is_downloadable": true,
#       "content_hash": "c3dfdd86981548e48bc8efb6c4162c76ba961ec92e60f6ba26189068a41fcaf2"
#     },
#     {
#       ".tag": "file",
#       "name": "hello.txt",
#       "path_lower": "/public/hello.txt",
#       "path_display": "/Public/hello.txt",
#       "parent_shared_folder_id": "2448313264",
#       "id": "id:25N5ksooX-sAAAAAAAAZYA",
#       "client_modified": "2014-07-02T01:28:43Z",
#       "server_modified": "2018-02-16T18:05:53Z",
#       "rev": "291ee4bb0",
#       "size": 14,
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "2448313264",
#         "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE"
#       },
#       "is_downloadable": true,
#       "content_hash": "82674cafa4320daa280b666af141db2b5bd7db4dff3b69dd91a6caea9e30dafb"
#     }
#   ],
#   "cursor": "AAE77A9T4tcyL7eoj_qL_4C735arjRfDRL8yg-yBRm0LxVYkGlPWtyoihPXig3uKLM8EUBmtUHXDMMnqSzkkbCAeqy3e3IeX2M1rV2NtNKobfmPVVMbK1LiOyn9jI9AsDnF8HHkbgGnlgUw4CvJ1Y1q2pJU-UMzy7qR6K8nYhe2vAcuTfBJmSFgCny3YXlutGJZFubiv9n0-Xmr-i7f5ctcSDUqfw1_sw4mGGmHGIyo3lP_1XJRD9DOOW7WZTYt2Uwr3sVjluPJmO93MUMlu6zEs3pB7xVVTNKk4J24IdcSH2A",
#   "has_more": false
# }


curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"shared_link\": {\"url\": \"https://www.dropbox.com/sh/tpgtd066g1umb13/AACPWhKNrRujRZHM3p7vXP1Qa?dl=0\"}, \"path\": \"/another folder\"}"

# {
#   "entries": [
#     {
#       ".tag": "file",
#       "name": "test.png",
#       "path_lower": "/public/another folder/test.png",
#       "path_display": "/Public/another folder/test.png",
#       "parent_shared_folder_id": "2448313264",
#       "id": "id:T9-uzcb3s4AAAAAAAAAAIA",
#       "client_modified": "2020-06-23T15:46:34Z",
#       "server_modified": "2020-06-23T15:46:35Z",
#       "rev": "5a8c2439cb67d91ee4bb0",
#       "size": 1427,
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "2448313264",
#         "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE"
#       },
#       "is_downloadable": true,
#       "content_hash": "3c6f88e464f1389ab9fc1a0c28c335e357bc61cf76e10e7bf3f146795e64e9f7"
#     }
#   ],
#   "cursor": "AAFWX5jkg5A6CEUiSOA_lCsuVVHlv2yCFtEkrE9CE4gKFmM3XFjUKL2znkL8V9104ofmyRBuSTIcjl1OOMy6_iuI21csGMIwqapxis_E0azOD7ZMDJQ0tJjMJ39sZ9i-WitNwuu0TDgzJn0UjDr7b9ZFktktVvK9VM5zB3W-3as0YaLmPpb8-4MovsdSiaQ12CSBRClnNVXSOa1T6SSOy3ktqn3SxFyr_fbXlzoevO2RiKthJHgdcFg7BGe89LN4_UKvpPFVGLZFdk6ZX6txXe3fW4Nuvq6k8a0HjLYSJt_yz_417KcLw8-a9sa97OxUYHXjqiDfkKWztFzEX4mWGpky",
#   "has_more": false
# }
&lt;/PRE&gt;
&lt;P&gt;Hope this helps, or let me know if I've misunderstood your use case!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 15:55:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/431967#M22851</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-23T15:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/431999#M22852</link>
      <description>&lt;P&gt;Hi, Greg, thanks for that, but as stated, it doesn't work, because the URL for the subfolder is not the same as that of the main folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try again, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for splitting this out, though. Since it has been split, then, could we change the title, perhaps, please? (I'll try, too)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps:&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;EM&gt;Programmatically Process Shared Link Folders and Sub-Folders and Their Contents&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:07:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/431999#M22852</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-06-23T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432019#M22853</link>
      <description>&lt;P&gt;Thanks for following up. I see you did successfully rename the thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I understand that the shared link, e.g., as seen in the browser, is not the same for the subfolder as the main folder, but to call /2/files/list_folder for a subfolder, you don't actually need the shared link for the subfolder in particular. You just need the combination of the shared link for the main folder, and the relative path of the subfolder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the two API calls in the sample I posted. The first lists the contents of the main folder using its shared link, and the second list contents of a subfolder using that same main folder shared link, plus the relative path, constructed from the information in the first response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, that&amp;nbsp;satisfies your use case here, but please elaborate if not.&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 19:03:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432019#M22853</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-23T19:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432025#M22854</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;, cheers ... I mean ... it sounds like it should ... but now I'm just hit with more issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting from scratch, and when I run the code that you gave with the URL I now get this error:&lt;/P&gt;&lt;PRE&gt;Error in call to API function "files/list_folder": request body: shared_link: unknown field 'path'&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2020 19:19:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432025#M22854</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-06-23T19:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432028#M22855</link>
      <description>&lt;P&gt;It sounds like you accidentally moved a "}" when copying in your shared link. The "path" parameter should be a top-level parameter, not part of the "shared_link" parameter object.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 19:24:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432028#M22855</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-23T19:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432032#M22856</link>
      <description>&lt;P&gt;You're quite right, cheers muchly, mate! :ThumbsUpAll: !! That managed to list the folder. Although, I don't think I would've *ever* worked that out from the documentation. :weary:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However all that said, I'm still not seeing any URL that I can use externally in any of those details, since experience has shown that the link plus the folder will not be a link that works in a browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I parse the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;parent_shared_folder_id&lt;/STRONG&gt; in a file that's contained in the subfolder to then perform a folder metadata call with it to get the url?&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I feel like that's going to be problematic if the folder is empty, though. Additionally, it would seem like a bit of a round the houses way to get links to subfolders.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;It sounds like you accidentally moved a "}" when copying in your shared link. The "path" parameter should be a top-level parameter, not part of the "shared_link" parameter object.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jun 2020 19:34:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432032#M22856</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-06-23T19:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432041#M22857</link>
      <description>&lt;P&gt;The /2/files/list_folder response doesn't include shared links for entries, nested or not. It does include the normal File/FolderMetadata for the entries though, so you can use that metadata in your app. To step back a bit though, what functionality are you trying to build?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you then want to programamtically download a file from one of the subfolders, you can then 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; with the original main shared link and relevant relative path again to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, if you do just want the nested shared link itself, e.g., to hand off to the user to display in the browser, that isn't available on the API. Let me know if that's the end goal and I'll pass it along as a feature request though.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 20:12:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432041#M22857</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-23T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432050#M22859</link>
      <description>&lt;P&gt;Hi, Greg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, yeah, that's the goal, so it'd be awesome if you could pass that on as a feature request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will accept the latest answer as a solution, but I think it's an amalgam of them all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think one of the issues with my previous code was that I was *completely* unaware of the "shared_link" part, which didn't seem to jump out at me whilst perusing the docs, but maybe I'm blind!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to use some combination of any of this with any of the online automation tools, such as Microsoft's powerful Power Automate stuff? Or maybe automate.io's much improving interface?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh, and in a while I'll come back and edit this post with some view on what I've put together so it's cogent.&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The /2/files/list_folder response doesn't include shared links for entries, nested or not. It does include the normal File/FolderMetadata for the entries though, so you can use that metadata in your app. To step back a bit though, what functionality are you trying to build?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if you then want to programamtically download a file from one of the subfolders, you can then 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; with the original main shared link and relevant relative path again to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, if you do just want the nested shared link itself, e.g., to hand off to the user to display in the browser, that isn't available on the API. Let me know if that's the end goal and I'll pass it along as a feature request though.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 20:51:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432050#M22859</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-06-23T20:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432261#M22863</link>
      <description>&lt;P&gt;Got it, thanks! I'll send this along to the team. (I can't promise if/when it might be implemented though.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't speak to those third party automation tools though, as they're not made by Dropbox.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 16:05:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/432261#M22863</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-24T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/470567#M23950</link>
      <description>&lt;P&gt;Ello, I'm back again! &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;I'm still trying to make this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with the copy, now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, let's say that I have this shared folder:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://www.dropbox.com/sh/g0ja3gk1u1pjf9y/AADjilHpLqi-e5PO-RGp4PHIa?dl=0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That shared folder has a subfolder called:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;test5&lt;/PRE&gt;&lt;P&gt;If I would like to copy the contents of that &lt;STRONG&gt;test5&lt;/STRONG&gt; subfolder to a given folder in the API, what am I putting in the '&lt;EM&gt;from_path&lt;/EM&gt;' field in this JSON?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "from_path": "WHATGOESHERE?",
    "to_path": "/destination5",
    "allow_shared_folder": true,
    "autorename": false,
    "allow_ownership_transfer": false
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a few attempts that I've made that have failed miserably:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;1.&lt;/P&gt;&lt;PRE&gt;{
    "from_path": "https://www.dropbox.com/sh/g0ja3gk1u1pjf9y/AADjilHpLqi-e5PO-RGp4PHIa/test5",
    "to_path": "/destination5",
    "allow_shared_folder": true,
    "autorename": false,
    "allow_ownership_transfer": false
}&lt;/PRE&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "shared_link": { "url": "https://www.dropbox.com/sh/g0ja3gk1u1pjf9y/AADjilHpLqi-e5PO-RGp4PHIa" },
    "from_path": "/test5",
    "to_path": "/destination5",
    "allow_shared_folder": true,
    "autorename": false,
    "allow_ownership_transfer": false
}&lt;/PRE&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "from_path": {
    "shared_link": {
      "url": "https://www.dropbox.com/sh/g0ja3gk1u1pjf9y/AADjilHpLqi-e5PO-RGp4PHIa"
    },
    "path": "/test5"
  },
  "to_path": "/destination5",
  "allow_shared_folder": true,
  "autorename": false,
  "allow_ownership_transfer": false
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I've also tried to have a look at the &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/CopyV2Builder.html" target="_blank"&gt;JAVA SDK builder&lt;/A&gt;, as I think that you actually recommended that someone was able to do it with that ... but I really don't understand how to use that.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 03:54:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/470567#M23950</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-11-17T03:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/470741#M23956</link>
      <description>&lt;P&gt;Unfortunately, the&amp;nbsp;Dropbox API doesn't offer a way to copy from a shared link into the connected&amp;nbsp;Dropbox account via the API like this,&amp;nbsp;but I'll pass this along as a feature request as well. I can't promise if/when that might be implemented though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-copy" target="_self"&gt;The&amp;nbsp;/2/files/copy_v2&lt;/A&gt; call (or native method in an SDK) that you're referring to only supports copying files from one location in the connected account to another location in the same account. It doesn't support using a shared link as the source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could download the files, using&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;, and then upload them to the account, e.g., using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;/2/files/upload&lt;/A&gt;, but that would be comparatively&amp;nbsp;inefficient of course.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 16:19:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/470741#M23956</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-17T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471147#M23971</link>
      <description>&lt;P&gt;Cheers, Greg, and thanks for taking it to the developers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will say that I've perused a few topics on this, and they've all been at least a year old, so I'm wondering if there's ever actually going to be any real movement with the (Public) Shared Folders/Links. (&lt;EM&gt;i'm not saying that in a tone that would indicate an attack on your person, mate ... just ... it seems like it's something that isn't desired for the public to have&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess, then, my final question would be what API command would you see as the best use case with regards to a cloud based implementation that may have size limits (let's take the Google API with limits size to 50MB per upload/download).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would imagine that a "download then upload" won't be the ideal solution for that, would it? Would something like " &lt;EM&gt;get_temporary_link&lt;/EM&gt; " work better. So it would:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Locate a file ID.&lt;/LI&gt;&lt;LI&gt;Generate a temporary link.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Allow that link to be used to directly access the file in question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be clear, I'm not stating that in a literal fashion, just using the get_temporary_link as an example, I'm sure there's a more appropriate function to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, once I have identified a file that I would like to copy to another (let's assume an external API to work this out better) then I need to essentially be given a direct link to the file, somehow, to present to the other API. How would I get that link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Would it perhaps be " &lt;EM&gt;get_shared_link_file&lt;/EM&gt; " ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, how would that work with the previously mentioned subfolder issues in that path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://content.dropboxapi.com/2/sharing/get_shared_link_file&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;EM&gt;I'm about to attempt it, but will try to play it out here, too&lt;/EM&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:05:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471147#M23971</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-11-18T18:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471173#M23972</link>
      <description>&lt;P&gt;Right, whenever possible, it's best to avoid unnecessarily&amp;nbsp;uploading/downloading locally, for the sake of reliability and efficiency. Passing a link between two services, if supported, would likely be faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, if you need a direct link to a file hosted on Dropbox, the specifics will depend on if the file exists in the&amp;nbsp;Dropbox account you're connected to via the API (i.e., the one for which you have an access token).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is in the connected account,&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt; would be a good option. That gives you a direct link to the file content, that you could hand off to the other service. Note that these links only last for four hours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is not in the connected account though, and say, you just have a shared link,&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt; won't work. Instead, this will depend on the shared link you have. If the shared link is already for the file itself, you can &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;modify it for direct access as covered here&lt;/A&gt;. However, if the shared link is just for a parent folder, as discussed through this thread, then unfortunately there isn't a good solution. As earlier, the API doesn't offer a way to get a link to just the nested file based on a shared link to the folder that contains it.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:14:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471173#M23972</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-18T19:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471222#M23973</link>
      <description>&lt;P&gt;Thanks again for coming back on this, mate. Really very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One last question&lt;/STRONG&gt; ... how about the whole folder? That is, we know, not nested, and available at root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any internal reason given as to why the access to Shared Files is so antiquated (sorry) ... or ... let's be honest ... restrictive ... next to the rest of the interface? It seems ... odd. Particularly given the removal of RSS and the way that people use Shared Folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Also, not for nothing, but then this particular guide should include that Shared Sub-Folders are essentially not accessible via the API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/lp/developers/reference/dbx-file-access-guide" target="_blank"&gt;DBX File Access Guide - Dropbox&lt;/A&gt;&amp;nbsp;(the "&lt;EM&gt;Non-downloadable files&lt;/EM&gt;" section)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 20:56:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471222#M23973</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-11-18T20:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471229#M23974</link>
      <description>&lt;P&gt;Thanks for the feedback! I can't speak to why any particular feature was or wasn't implemented, but we appreciate you taking the time to share this. I'll send it along.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a shared link for a folder and wish to get a direct link to that, you can likewise modify that &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;as documented here&lt;/A&gt;. For folders, that will give you a .zip file of the folder.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 21:09:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/471229#M23974</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-18T21:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Process Shared Link Folders and Sub-Folders and Their Contents</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/486976#M24458</link>
      <description>&lt;P&gt;Update: The Dropbox API now returns the shared link for the nested item as 'url' when requesting the metadata for that item using the "path" parameter on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self"&gt;/2/sharing/get_shared_link_metadata&lt;/A&gt; (instead of the original parent link).&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 21:54:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-Process-Shared-Link-Folders-and-Sub-Folders-and/m-p/486976#M24458</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-01-13T21:54:09Z</dc:date>
    </item>
  </channel>
</rss>

