<?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: Issues with 2/files/list_folder/continue &amp;amp; cursor in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282201#M17289</link>
    <description>Hi Greg,&lt;BR /&gt;&lt;BR /&gt;That's just a snippet in a class file. So essentially what im doing is this&lt;BR /&gt;&lt;BR /&gt;1. Log user in, get latest cursor and save to database locally&lt;BR /&gt;2. Once a user makes changes, a webhook is sent and the locally stored cursor is used for the list_folder/continue call&lt;BR /&gt;3. Update cursor for user&lt;BR /&gt;&lt;BR /&gt;Now when another change is initiated, making a call with the new cursor still shows ALL changes, not just latest.&lt;BR /&gt;&lt;BR /&gt;I think i'm just using the wrong cursor, but need to confirm.&lt;BR /&gt;&lt;BR /&gt;Should I..&lt;BR /&gt;&lt;BR /&gt;Make API call then save cursor given by list_folder/continue&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;&lt;BR /&gt;Make list_folder/continue API call, then do another to get_latest_cursor and save that cursor.&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Jun 2018 16:16:32 GMT</pubDate>
    <dc:creator>Victor L.19</dc:creator>
    <dc:date>2018-06-26T16:16:32Z</dc:date>
    <item>
      <title>Issues with 2/files/list_folder/continue &amp; cursor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282097#M17277</link>
      <description>&lt;P&gt;I have a web app that does the following in order:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Login user via "login via dropbox" link&lt;/P&gt;
&lt;P&gt;2. Get and save latest cursor&lt;/P&gt;
&lt;P&gt;3. Call 2/files/list_folder/continue as needed using latest cursor, saving new cursor after api call&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, no matter what changes are made to the app folder, *ALL* changes are returned when calling 2/files/list_folder/continue, not just latest changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am i doing something wrong or out of sequence?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282097#M17277</guid>
      <dc:creator>Victor L.19</dc:creator>
      <dc:date>2019-05-29T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 2/files/list_folder/continue &amp; cursor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282192#M17285</link>
      <description>We'll be happy to help with this, but need some more information. Please reply with:&lt;BR /&gt;&lt;BR /&gt;- the name and version of the platform and SDK/library you are using, if any&lt;BR /&gt;- the steps to reproduce the problem, including the relevant code snippet(s)&lt;BR /&gt;- the full text of any unexpected output/errors&lt;BR /&gt;&lt;BR /&gt;Thanks in advance! If you'd prefer to share privately, please feel free to open a ticket here: &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:31:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282192#M17285</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-26T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 2/files/list_folder/continue &amp; cursor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282196#M17286</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Sorry for the lack of information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using PHP with no library (just CURL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Snipper&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$data = '{"cursor": "' . $cursor . '"}';
            
$ch = curl_init('https://api.dropboxapi.com/2/files/list_folder/continue');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);  
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token, 'Content-Type: application/json'));
$json = curl_exec($ch);
$result = json_decode($json, true);
        
$new_cursor = $result['cursor'];&lt;/PRE&gt;
&lt;P&gt;There are no errors. However, the next time i call list_folder/continue with the new cursor, i get a history fo all changes previously. Not just recent changes.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:40:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282196#M17286</guid>
      <dc:creator>Victor L.19</dc:creator>
      <dc:date>2018-06-26T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 2/files/list_folder/continue &amp; cursor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282199#M17288</link>
      <description>Thanks! I just tried this, and I can't seem to reproduce this issue with this code though.&lt;BR /&gt;&lt;BR /&gt;Are you sure the first call is succeeding? I don't see any error handling in this snippet.&lt;BR /&gt;&lt;BR /&gt;Also, how are you copying $new_cursor to $cursor? I don't see that in this sample either. Are you sure that's working properly?</description>
      <pubDate>Tue, 26 Jun 2018 16:00:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282199#M17288</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-26T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 2/files/list_folder/continue &amp; cursor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282201#M17289</link>
      <description>Hi Greg,&lt;BR /&gt;&lt;BR /&gt;That's just a snippet in a class file. So essentially what im doing is this&lt;BR /&gt;&lt;BR /&gt;1. Log user in, get latest cursor and save to database locally&lt;BR /&gt;2. Once a user makes changes, a webhook is sent and the locally stored cursor is used for the list_folder/continue call&lt;BR /&gt;3. Update cursor for user&lt;BR /&gt;&lt;BR /&gt;Now when another change is initiated, making a call with the new cursor still shows ALL changes, not just latest.&lt;BR /&gt;&lt;BR /&gt;I think i'm just using the wrong cursor, but need to confirm.&lt;BR /&gt;&lt;BR /&gt;Should I..&lt;BR /&gt;&lt;BR /&gt;Make API call then save cursor given by list_folder/continue&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;&lt;BR /&gt;Make list_folder/continue API call, then do another to get_latest_cursor and save that cursor.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:16:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282201#M17289</guid>
      <dc:creator>Victor L.19</dc:creator>
      <dc:date>2018-06-26T16:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 2/files/list_folder/continue &amp; cursor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282203#M17290</link>
      <description>Disregard. I was not saving the latest cursor properly. I was using the wrong column name "user_id" vs "id" in the user table.&lt;BR /&gt;&lt;BR /&gt;Sorry for the trouble and will add error handling asap.</description>
      <pubDate>Tue, 26 Jun 2018 16:34:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issues-with-2-files-list-folder-continue-amp-cursor/m-p/282203#M17290</guid>
      <dc:creator>Victor L.19</dc:creator>
      <dc:date>2018-06-26T16:34:29Z</dc:date>
    </item>
  </channel>
</rss>

