<?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: Dropbox files/list_folder behaviour in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/233108#M12720</link>
    <description>&lt;P&gt;But ListFolderGetLatestCursor needs a path too. I have to iterate over all folders for every user to see changes? There isn't any way of obtaining just the files that have changed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't get how to just get the modifications, creations and deletions, because with that I have to iterate over all folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Webhook notifies when modified, created or deleted a file or folder. There isn't any way of obtaning that array of files on the webhook?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 07:34:26 GMT</pubDate>
    <dc:creator>Lechucico</dc:creator>
    <dc:date>2017-07-20T07:34:26Z</dc:date>
    <item>
      <title>Dropbox files/list_folder behaviour</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/232948#M12707</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually I'm building an app that needs notifications when a file is created, modified or deleted. I have a webhook configured correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just need notifications about these files, not the entire dropbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tryed with /files/list_folder but it gives information of all files on a certain path and I don't want this behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen get_lastest_cursor that gives information of only changes comparing the anterior cursor with the new cursor. I don't know how to use that, because on my java application I don't have this method avaiable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxClientV2 dropboxClient = new DbxClientV2(config,&amp;lt;api_key&amp;gt;);
result = dropboxClient.files().get_latest_cursor()??;&lt;/PRE&gt;
&lt;P&gt;Is there any example of this? Is that what I need for receive the latest changes on dropbox?&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:20:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/232948#M12707</guid>
      <dc:creator>Lechucico</dc:creator>
      <dc:date>2019-05-29T09:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox files/list_folder behaviour</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/232988#M12711</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/45188338/dropbox-latest-changes-webhook" target="_self"&gt;https://stackoverflow.com/questions/45188338/dropbox-latest-changes-webhook&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dropbox webhooks will be sent for changes to any files your app can access in the linked users' accounts. It's not possible to configure them to be sent for only specific files,&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;Using &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_self"&gt;listFolder&lt;/A&gt; and &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_self"&gt;listFolderContinue&lt;/A&gt;, you can list all of the contents of the linked user's account. If you only want new changes though, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderGetLatestCursor-java.lang.String-" target="_self"&gt;listFolderGetLatestCursor&lt;/A&gt;&amp;nbsp;to get a cursor for the point in time at which you make the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderGetLatestCursor-java.lang.String-" target="_self"&gt;listFolderGetLatestCursor&lt;/A&gt;&amp;nbsp;call. Then, you can call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_self"&gt;listFolderContinue&lt;/A&gt;&amp;nbsp;again to get any changes that&amp;nbsp;occurred after that point in time. (For example, you can call back using that cursor after you&amp;nbsp;receive a webhook notification for that user.) Make sure you read the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_self"&gt;listFolder&lt;/A&gt;&amp;nbsp;documentation for information on how to use this interface.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:29:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/232988#M12711</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-19T14:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox files/list_folder behaviour</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/233108#M12720</link>
      <description>&lt;P&gt;But ListFolderGetLatestCursor needs a path too. I have to iterate over all folders for every user to see changes? There isn't any way of obtaining just the files that have changed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't get how to just get the modifications, creations and deletions, because with that I have to iterate over all folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Webhook notifies when modified, created or deleted a file or folder. There isn't any way of obtaning that array of files on the webhook?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:34:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/233108#M12720</guid>
      <dc:creator>Lechucico</dc:creator>
      <dc:date>2017-07-20T07:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox files/list_folder behaviour</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/233171#M12724</link>
      <description>The webhook itself doesn't tell you what has changed. It only tells you when something has changed.&lt;BR /&gt;&lt;BR /&gt;You can certainly get just new changes after calling ListFolderGetLatestCursor  though. It sounds like this is the process you're looking for:&lt;BR /&gt;&lt;BR /&gt;1) Set up your webhook.&lt;BR /&gt;2) Call ListFolderGetLatestCursor with path="" (to indicate root, i.e., for all folders in the account that your app can see) and recursive=true (i.e., for all depths in those folders) and store the resulting cursor.&lt;BR /&gt;3) Wait for the webhook to notify you of changes.&lt;BR /&gt;4) When notified, call listFolderContinue using that stored cursor from step 2 to get only the things that have changed since then. &lt;BR /&gt;5) Store the new cursor returned by listFolderContinue. (Repeat if hasMore is true.)&lt;BR /&gt;6) Wait for further changes and repeat the loop.</description>
      <pubDate>Thu, 20 Jul 2017 14:15:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-files-list-folder-behaviour/m-p/233171#M12724</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-20T14:15:05Z</dc:date>
    </item>
  </channel>
</rss>

