<?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: example of periodically migrating new files from shared folders? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/example-of-periodically-migrating-new-files-from-shared-folders/m-p/185801#M7839</link>
    <description>&lt;P&gt;Hi Erik, if you want to integrate with the&amp;nbsp;Dropbox API using Python, I&amp;nbsp;recommend using the official&amp;nbsp;Dropbox Python SDK:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/python" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/python&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can find a tutorial, examples, and documentation there to help you get started.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can have your users authorize your app to connect to their accounts by using the OAuth flow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, for example, to programmatically share a folder, you can use the&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_share_folder" target="_blank" rel="nofollow noreferrer"&gt;sharing_share_folder&lt;/A&gt; method to share a folder, and then&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_add_file_member" target="_blank" rel="nofollow noreferrer"&gt;sharing_add_file_member&lt;/A&gt; to invite members.&lt;/P&gt;
&lt;P&gt;That may not actually be necessary though, depending on how you build it, as you can just monitor the users' own connected accounts directly. For example, if you're building a web app, you can use &lt;A href="https://www.dropbox.com/developers/reference/webhooks" target="_blank" rel="nofollow noreferrer"&gt;webhooks&lt;/A&gt; to be notified of file changes to the connected accounts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank" rel="nofollow noreferrer"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank" rel="nofollow noreferrer"&gt;files_list_folder_continue&lt;/A&gt;&amp;nbsp;to list files and folders in an account, using the "rev" value to keep track of whether or not you downloaded a particular version of a file.&lt;/P&gt;
&lt;P&gt;We don't have samples for S3 in particular, but you can use&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_download" target="_blank" rel="nofollow noreferrer"&gt;files_download&lt;/A&gt; to do the actual download. (The StackOverflow post you linked to is about downloading from shared links, not via the API.)&lt;/P&gt;</description>
    <pubDate>Sat, 27 Aug 2016 04:25:52 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-08-27T04:25:52Z</dc:date>
    <item>
      <title>example of periodically migrating new files from shared folders?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/example-of-periodically-migrating-new-files-from-shared-folders/m-p/185800#M7838</link>
      <description>&lt;P&gt;We are &amp;nbsp;looking for examples and pointers&amp;nbsp;to help us with the creation of a &amp;nbsp;system using your python tools wherein:&lt;/P&gt;
&lt;P&gt;Clients will share a folder with our business. What is the best practice for doing this? &amp;nbsp;Can we collect their credentials on our site (I am imagining something like openID wherein they authenticate their dropbox account. &amp;nbsp;Is there an example of this)? &amp;nbsp;Or should they share their folder with our business via&amp;nbsp;their dropbox client application? &amp;nbsp;Or is there another way?&lt;/P&gt;
&lt;P&gt;Once folders are shared with us, we want to check those folders every N minutes to look for new files. &amp;nbsp;What is the best practice for determining which files are new? &amp;nbsp;Checksums or time stamps that we do the book keeping on? Or do your tools let us track what we've downloaded already and help us filter for only new files?&lt;/P&gt;
&lt;P&gt;If there are new files in one of the sahred folders, we want to copy them to aws s3. Are there examples of this migration?. &amp;nbsp;The files could be large video files. &amp;nbsp;Some preliminary research suggests this might be problematic when moving files from a shared folder -- is this the case (&lt;A href="http://stackoverflow.com/a/20243081/62255" rel="nofollow noreferrer" target="_blank"&gt;http://stackoverflow.com/a/20243081/62255&lt;/A&gt;)?&lt;/P&gt;
&lt;P&gt;Thank you for any pointers and suggestions!&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;</description>
      <pubDate>Wed, 29 May 2019 09:30:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/example-of-periodically-migrating-new-files-from-shared-folders/m-p/185800#M7838</guid>
      <dc:creator>Erik B.20</dc:creator>
      <dc:date>2019-05-29T09:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: example of periodically migrating new files from shared folders?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/example-of-periodically-migrating-new-files-from-shared-folders/m-p/185801#M7839</link>
      <description>&lt;P&gt;Hi Erik, if you want to integrate with the&amp;nbsp;Dropbox API using Python, I&amp;nbsp;recommend using the official&amp;nbsp;Dropbox Python SDK:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/python" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/python&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can find a tutorial, examples, and documentation there to help you get started.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can have your users authorize your app to connect to their accounts by using the OAuth flow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, for example, to programmatically share a folder, you can use the&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_share_folder" target="_blank" rel="nofollow noreferrer"&gt;sharing_share_folder&lt;/A&gt; method to share a folder, and then&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_add_file_member" target="_blank" rel="nofollow noreferrer"&gt;sharing_add_file_member&lt;/A&gt; to invite members.&lt;/P&gt;
&lt;P&gt;That may not actually be necessary though, depending on how you build it, as you can just monitor the users' own connected accounts directly. For example, if you're building a web app, you can use &lt;A href="https://www.dropbox.com/developers/reference/webhooks" target="_blank" rel="nofollow noreferrer"&gt;webhooks&lt;/A&gt; to be notified of file changes to the connected accounts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank" rel="nofollow noreferrer"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank" rel="nofollow noreferrer"&gt;files_list_folder_continue&lt;/A&gt;&amp;nbsp;to list files and folders in an account, using the "rev" value to keep track of whether or not you downloaded a particular version of a file.&lt;/P&gt;
&lt;P&gt;We don't have samples for S3 in particular, but you can use&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_download" target="_blank" rel="nofollow noreferrer"&gt;files_download&lt;/A&gt; to do the actual download. (The StackOverflow post you linked to is about downloading from shared links, not via the API.)&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 04:25:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/example-of-periodically-migrating-new-files-from-shared-folders/m-p/185801#M7839</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-27T04:25:52Z</dc:date>
    </item>
  </channel>
</rss>

