<?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: Generate links and passwords with Python in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/271341#M16051</link>
    <description>&lt;P&gt;Most of the links in the above message no longer work.&amp;nbsp; Is it possible to re-link the references, or delete the message?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 04:05:53 GMT</pubDate>
    <dc:creator>dbower</dc:creator>
    <dc:date>2018-04-05T04:05:53Z</dc:date>
    <item>
      <title>Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/198399#M9179</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to generate shared links with individual passwords for a lot of folders in one directory in Dropbox. Could you please give me some starter code or point me to more information for doing this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I would like to be able to loop through all the folder in a directoy, generate a share link for each with a unique password (either generated by Dropbox or supplied using some sort of randomiser function), and then saving these to a CSV.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could point me in the right direction that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/198399#M9179</guid>
      <dc:creator>rf27</dc:creator>
      <dc:date>2019-05-29T09:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/198488#M9186</link>
      <description>&lt;P&gt;If you're using Python, we&amp;nbsp;recommend using the &lt;A href="https://www.dropbox.com/developers/documentation/python" target="_self"&gt;official&amp;nbsp;Dropbox Python SDK&lt;/A&gt;. In that, you can use the &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.sharing_create_shared_link_with_settings" target="_self"&gt;sharing_create_shared_link_with_settings&lt;/A&gt;&amp;nbsp;method to create a shared link for any file or folder. Here's&amp;nbsp;an example of using that method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import datetime&lt;BR /&gt;&lt;BR /&gt;import dropbox&lt;BR /&gt;&lt;BR /&gt;dbx = dropbox.Dropbox("&amp;lt;ACCESS_TOKEN&amp;gt;")&lt;BR /&gt;&lt;BR /&gt;expires = datetime.datetime.now() + datetime.timedelta(days=30)&lt;BR /&gt;requested_visibility = dropbox.sharing.RequestedVisibility.team_only&lt;BR /&gt;desired_shared_link_settings = dropbox.sharing.SharedLinkSettings(requested_visibility=requested_visibility, expires=expires)&lt;BR /&gt;&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/test.txt", settings=desired_shared_link_settings)&lt;BR /&gt;&lt;BR /&gt;print(shared_link_metadata)&lt;/PRE&gt;
&lt;P&gt;`&amp;lt;ACCESS_TOKEN&amp;gt;` should be replaced with the access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;In your case, you'd want to use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.sharing.RequestedVisibility.password" target="_self"&gt;RequestedVisibility.password&lt;/A&gt;&amp;nbsp;instead of team_only.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:08:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/198488#M9186</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-05T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/271341#M16051</link>
      <description>&lt;P&gt;Most of the links in the above message no longer work.&amp;nbsp; Is it possible to re-link the references, or delete the message?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 04:05:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/271341#M16051</guid>
      <dc:creator>dbower</dc:creator>
      <dc:date>2018-04-05T04:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/271390#M16056</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/654077"&gt;@dbower&lt;/a&gt;&amp;nbsp;Thanks for letting me know! I've updated my post to fix those issues.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:08:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/271390#M16056</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-05T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276698#M16569</link>
      <description>Hi Greg, I've tried your code but got exception with the following message:&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('e41bbb442f5b1b4fb6288eb2aa37c87e', CreateSharedLinkWithSettingsError(u'settings_error', SharedLinkSettingsError(u'not_authorized', None))).&lt;BR /&gt;I've no clues what's the problem and could you help me with this?&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 17 May 2018 10:19:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276698#M16569</guid>
      <dc:creator>ShawnLyu</dc:creator>
      <dc:date>2018-05-17T10:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276751#M16570</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/681795"&gt;@ShawnLyu&lt;/a&gt;&amp;nbsp;You can find more information about the SharedLinkSettingsError.not_authorized error in the documentation here:&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/moduledoc.html#dropbox.sharing.SharedLinkSettingsError" target="_blank"&gt;https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.sharing.SharedLinkSettingsError&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short, you'll get that if you try to use a setting that isn't available to the account for the access token you're using. Free accounts can't set link passwords or expirations, for example.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 16:19:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276751#M16570</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-17T16:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276812#M16582</link>
      <description>Thanks for your information and that helps a lot!&lt;BR /&gt;I got another problem and it would be great if you could help with it:&lt;BR /&gt;I've developing a website where clients would request for access to certain files/folders. In this case I wish I could generate shared links with passwords and expire date for each of them differently, say they would each get a unique accessible link with password which would be valid within certain dates.&lt;BR /&gt;However, I would get shared link exists errors when I try to generate sharing links for files/folders that have one already.&lt;BR /&gt;So do you provide any solutions targeting this scenario?</description>
      <pubDate>Fri, 18 May 2018 03:25:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276812#M16582</guid>
      <dc:creator>ShawnLyu</dc:creator>
      <dc:date>2018-05-18T03:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate links and passwords with Python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276856#M16585</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/681795"&gt;@ShawnLyu&lt;/a&gt;&amp;nbsp;It's not possible to create more than one distinct shared link per single file or folder,&amp;nbsp;but I'll pass this along as a feature request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being the case, you'd need to either use the same shared link for each client, or make a copy of the file or folder for each client (and make a shared link for&amp;nbsp;each copy).&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 16:06:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-links-and-passwords-with-Python/m-p/276856#M16585</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-18T16:06:46Z</dc:date>
    </item>
  </channel>
</rss>

