<?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: not getting data for edits in folders in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574721#M26796</link>
    <description>&lt;P&gt;The thing is that I am testing this app on a personal account for now so the team members is not the issue.&lt;/P&gt;&lt;P&gt;There are changes being made when the Webhook returns an empty entry.&lt;/P&gt;&lt;P&gt;Could it be that the issue is that I only set the recursive property later on, after I had been running the code a few times?&lt;/P&gt;&lt;P&gt;Can you please advise?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 09:20:37 GMT</pubDate>
    <dc:creator>af11</dc:creator>
    <dc:date>2022-02-01T09:20:37Z</dc:date>
    <item>
      <title>not getting data for edits in folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574455#M26785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I set up a notification system to get notified when there are changes to my dropbox account.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is a code excerpt&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;process_user(account):&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;# cursor for the user (None the first time)&lt;BR /&gt;&lt;/SPAN&gt;    cursor = redis_client.hget(&lt;SPAN&gt;'cursors'&lt;/SPAN&gt;, account)&lt;BR /&gt;&lt;BR /&gt;    dbx = Dropbox(ACCESS_TOKEN)&lt;BR /&gt;&lt;BR /&gt;    has_more = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    while &lt;/SPAN&gt;has_more:&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;cursor &lt;SPAN&gt;is None&lt;/SPAN&gt;:&lt;BR /&gt;            result = dbx.files_list_folder(&lt;SPAN&gt;path&lt;/SPAN&gt;=&lt;SPAN&gt;''&lt;/SPAN&gt;, &lt;SPAN&gt;recursive&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f'RESULT WHEN CURSOR WAS NONE: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;result&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;            result = dbx.files_list_folder_continue(cursor)&lt;BR /&gt;            &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f'RESULT WHEN WAS CURSOR: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;result&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;for &lt;/SPAN&gt;entry &lt;SPAN&gt;in &lt;/SPAN&gt;result.entries:&lt;BR /&gt;            &lt;SPAN&gt;print&lt;/SPAN&gt;(entry)&lt;BR /&gt;            send_notification(&lt;SPAN&gt;'entry'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;# Update cursor&lt;BR /&gt;&lt;/SPAN&gt;        cursor = result.cursor&lt;BR /&gt;        redis_client.hset(&lt;SPAN&gt;'cursors'&lt;/SPAN&gt;, account, cursor)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;# Repeat only if there's more to do&lt;BR /&gt;&lt;/SPAN&gt;        has_more = result.has_more&lt;/PRE&gt;&lt;P&gt;However, when I make edits to data in folders, this is what files_list_folder_continue returns:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ListFolderResult(cursor='AAFZsPF8zLH6ZKF2EXhPnqhXR5OhP-0ydWr8wx3hph4byo7wTdJytQCwIY7x8JeXI01j1x417_VNyrOrFmNyx8-CUghuHeCxrrkZZXRmMBgStDBJy-XEqKEeXIcyJ0iMvxdSI_hnDPdRcvEL1esHLHr5L1JYjx9RLis8nNqWG_MJH4dwjWZd3hJIM2hTGHSV_1A', entries=[], has_more=False)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The entry array is empty.&amp;nbsp; How am I supposed to know what was edited?&amp;nbsp; What can I change so that I get the data for edits in folders?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 10:37:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574455#M26785</guid>
      <dc:creator>af11</dc:creator>
      <dc:date>2022-01-31T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data for edits in folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574573#M26793</link>
      <description>&lt;P&gt;Webhook notifications tell you when something has changed, and using the files_list_folder/files_list_folder_continue functionality is the right way to then list items and check for changes. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I see you're getting back a result with an empty entries list, indicating that there were no changes to report for the supplied cursor. Webhook notifications will be sent for any changes, but the entries that the files_list_folder/files_list_folder_continue functionality returns will depend on the parameters you used with them originally. From your files_list_folder call I see you're passing in the empty string as the path and are setting recursive=True. Note that by default though, API calls operate in the "member folder" of the connected account, so anything outside the member folder, such as in the "team space", if any, will not be found by default. You can configure API calls to operate in the "team space" instead though. To do so, you'll need to set the "Dropbox-Api-Path-Root" header. You can find information on this in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_self"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 18:26:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574573#M26793</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-01-31T18:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data for edits in folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574721#M26796</link>
      <description>&lt;P&gt;The thing is that I am testing this app on a personal account for now so the team members is not the issue.&lt;/P&gt;&lt;P&gt;There are changes being made when the Webhook returns an empty entry.&lt;/P&gt;&lt;P&gt;Could it be that the issue is that I only set the recursive property later on, after I had been running the code a few times?&lt;/P&gt;&lt;P&gt;Can you please advise?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:20:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574721#M26796</guid>
      <dc:creator>af11</dc:creator>
      <dc:date>2022-02-01T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data for edits in folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574811#M26801</link>
      <description>&lt;P&gt;This would depend on the particular timing and cursors you're using, but yes, the options you set on files_list_folder apply to the cursor resulting from that call, as well as all further cursors retrieved from that initial cursor. So, for example, if you are using a cursor that descends from a call that originally set 'recursive=False' (or omitted 'recursive', since the default is 'False), then you will not receive any nested entries when using that cursor (or any such descendant cursor). You would need to start again with files_list_folder to change the options.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 18:10:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/not-getting-data-for-edits-in-folders/m-p/574811#M26801</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-01T18:10:16Z</dc:date>
    </item>
  </channel>
</rss>

