<?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 Get folder links in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518270#M25322</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been tasked with creating shared folders for our team. Each team member will get their own folder that will contain files specific to them. I need a way to collect or create the shared links by automation rather than by copying and pasting as there are currently over 100 team members but this is likely to grow.&amp;nbsp; Doing it by hand has proven to be time consuming and error prone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is it possible to do this automatically? I have some basic python knowledge but the API documentation is a little difficult.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end I would like a csv file listing the folder name and the shared link.&amp;nbsp; &amp;nbsp;Could someone point me in the right direction on this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With thanks in advance,&lt;/P&gt;
&lt;P&gt;James&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 17:50:49 GMT</pubDate>
    <dc:creator>TheBadger</dc:creator>
    <dc:date>2021-05-05T17:50:49Z</dc:date>
    <item>
      <title>Get folder links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518270#M25322</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been tasked with creating shared folders for our team. Each team member will get their own folder that will contain files specific to them. I need a way to collect or create the shared links by automation rather than by copying and pasting as there are currently over 100 team members but this is likely to grow.&amp;nbsp; Doing it by hand has proven to be time consuming and error prone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is it possible to do this automatically? I have some basic python knowledge but the API documentation is a little difficult.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end I would like a csv file listing the folder name and the shared link.&amp;nbsp; &amp;nbsp;Could someone point me in the right direction on this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With thanks in advance,&lt;/P&gt;
&lt;P&gt;James&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:50:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518270#M25322</guid>
      <dc:creator>TheBadger</dc:creator>
      <dc:date>2021-05-05T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get folder links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518330#M25323</link>
      <description>&lt;P&gt;Yes, you can use the Dropbox API to automate the creation of shared links. For Python, we recommend using the official Dropbox API v2 Python SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-python&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that, you can use the sharing_create_shared_link_with_settings method to create a shared link for any file or folder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_create_shared_link_with_settings" target="_blank"&gt;https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_create_shared_link_with_settings&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:46:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518330#M25323</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-05T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get folder links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518348#M25325</link>
      <description>&lt;P&gt;Sorry I'm obviously not understanding the documentation because I keep getting an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The folder i want the link for is called test it's in the same directory as the python code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;the_link = dbx.sharing_create_shared_link_with_settings('/test', settings=None)
print(the_link)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Traceback (most recent call last):&lt;BR /&gt;File "D:\james\Dropbox\Project KMG Instructors\dropbox test.py", line 13, in &amp;lt;module&amp;gt;&lt;BR /&gt;the_link = dbx.sharing_create_shared_link_with_settings('/test', settings=None)&lt;BR /&gt;File "C:\Users\james\AppData\Local\Programs\Python\Python39\lib\site-packages\dropbox\base.py", line 4060, in sharing_create_shared_link_with_settings&lt;BR /&gt;r = self.request(&lt;BR /&gt;File "C:\Users\james\AppData\Local\Programs\Python\Python39\lib\site-packages\dropbox\dropbox_client.py", line 346, in request&lt;BR /&gt;raise ApiError(res.request_id,&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('21aabc3f746b4a0ca5f079118eb3a353', CreateSharedLinkWithSettingsError('path', LookupError('not_found', None)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I'm new to all this.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 15:30:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518348#M25325</guid>
      <dc:creator>TheBadger</dc:creator>
      <dc:date>2021-05-05T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get folder links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518357#M25326</link>
      <description>&lt;P&gt;The path, "/test" in your code here, should be referring to the path of the file or folder in the Dropbox account, not related to the location of the code you're running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend reading &lt;A href="https://developers.dropbox.com/dbx-file-access-guide" target="_self"&gt;the File Access Guide&lt;/A&gt; for reference.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 15:44:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-folder-links/m-p/518357#M25326</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-05T15:44:29Z</dc:date>
    </item>
  </channel>
</rss>

