<?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: get_last_cursor() is constantly changes in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650776#M29757</link>
    <description>&lt;P&gt;Hi @&lt;SPAN class=""&gt;Здравко&lt;/SPAN&gt;&amp;nbsp;thank you for your reply,&amp;nbsp;&lt;BR /&gt;Following th API Docs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-get_latest_cursor" target="_self" rel="noopener noreferrer"&gt;here&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;A way to quickly get a cursor for the folder's state. Unlike&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank" rel="noopener noreferrer"&gt;list_folder&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-get_latest_cursor" target="_blank" rel="noopener noreferrer"&gt;list_folder/get_latest_cursor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;doesn't return any entries.&amp;nbsp;&lt;STRONG&gt;This endpoint is for app which only needs to know about new files and modifications&lt;/STRONG&gt;&amp;nbsp;and doesn't need to know about files that already exist in Dropbox&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now I'm a bit confused, in which way this cursor, or in general this endpoint, is working in order to retrieve updated information about new files and modification?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 15:01:31 GMT</pubDate>
    <dc:creator>rodriguezo</dc:creator>
    <dc:date>2023-01-13T15:01:31Z</dc:date>
    <item>
      <title>get_last_cursor() is constantly changes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650753#M29755</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;In my application I've implemented this logic in order to reduce significatly the traffic, but &lt;EM&gt;get_last_cursor()&lt;/EM&gt; doesn't seem to work properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I store the cursor from my last &lt;EM&gt;list_folder/continue&lt;/EM&gt; recursive call to a specific path.&lt;/LI&gt;
&lt;LI&gt;Webhook get triggered by Dropbox, so I call &lt;EM&gt;get_last_cursor()&lt;/EM&gt; at the same path.&lt;/LI&gt;
&lt;LI&gt;I compare the retrieved cursor with the stored one, if not matching, I proceed to update the information with &lt;EM&gt;list_folder/continue&lt;/EM&gt; with the OLDER&amp;nbsp; stored cursor set at the same path.&lt;/LI&gt;
&lt;LI&gt;After information update, repeat from point 1.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;: In the next call &lt;EM&gt;get_last_cursor()&lt;/EM&gt; result always changes so It's also never matching my stored cursor, even if no edit nor API calls has been done at the specified path, making the optimization worthless.&lt;BR /&gt;I also tried to store the cursor from an extra get_last_cursor() call just after the recursive call from last list_folder/continue, but with same result.&lt;BR /&gt;&lt;BR /&gt;From api docs "&lt;SPAN&gt;&lt;EM&gt;A way to quickly get a cursor for the folder's state.&lt;/EM&gt;", but looks like the folder's state is constantly changes, even if it's not.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How can I solve?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:52:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650753#M29755</guid>
      <dc:creator>rodriguezo</dc:creator>
      <dc:date>2023-01-13T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: get_last_cursor() is constantly changes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650773#M29756</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1608422"&gt;@rodriguezo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You have conceptual mistake. Cursor (including the last one) represent somehow particular enumeration state. It's an opaque object and you shouldn't suppose existence of any features that are not explicitly supported (that what you are actually doing)! Where did you read that cursors are comparable? 🧐 Actually, they are not and you should use them as arguments to appropriate APIs only (as described in the documentation). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Even more: in your particular case you don't need the last cursor. It's clear what you are trying to optimize, but (as I mentioned) it's impossible.&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:25:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650773#M29756</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-01-13T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: get_last_cursor() is constantly changes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650776#M29757</link>
      <description>&lt;P&gt;Hi @&lt;SPAN class=""&gt;Здравко&lt;/SPAN&gt;&amp;nbsp;thank you for your reply,&amp;nbsp;&lt;BR /&gt;Following th API Docs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-get_latest_cursor" target="_self" rel="noopener noreferrer"&gt;here&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;A way to quickly get a cursor for the folder's state. Unlike&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank" rel="noopener noreferrer"&gt;list_folder&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-get_latest_cursor" target="_blank" rel="noopener noreferrer"&gt;list_folder/get_latest_cursor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;doesn't return any entries.&amp;nbsp;&lt;STRONG&gt;This endpoint is for app which only needs to know about new files and modifications&lt;/STRONG&gt;&amp;nbsp;and doesn't need to know about files that already exist in Dropbox&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now I'm a bit confused, in which way this cursor, or in general this endpoint, is working in order to retrieve updated information about new files and modification?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:01:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-last-cursor-is-constantly-changes/m-p/650776#M29757</guid>
      <dc:creator>rodriguezo</dc:creator>
      <dc:date>2023-01-13T15:01:31Z</dc:date>
    </item>
  </channel>
</rss>

