<?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: longpoll api returns always true when I added shared folder to my drive in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229203#M12443</link>
    <description>&lt;P&gt;When calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;list_folder&lt;/A&gt;, you need to check the has_more value in the response. If it's true, you need to call back to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;list_folder/continue&lt;/A&gt;&amp;nbsp;with the last returned cursor&amp;nbsp;to get more results. You can find more information on how this works in the documentation for list_folder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use a cursor that indicates has_more=true as you are doing,&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-longpoll" target="_self"&gt;list_folder/longpoll&lt;/A&gt;&amp;nbsp;will also immediately indicate that there are more entries to retrieve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once has_more is false, you can then save the cursor and use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-longpoll" target="_self"&gt;list_folder/longpoll&lt;/A&gt;&amp;nbsp;to monitor for new changes.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2017 20:50:14 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-06-25T20:50:14Z</dc:date>
    <item>
      <title>longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229187#M12438</link>
      <description>&lt;P&gt;When I added shared folder to my drive, longpoll api immediately returns true (no wait).&lt;/P&gt;&lt;P&gt;list_folder api for root folder returns new cursor and longpoll api&amp;nbsp;by root cursor returns true.&lt;/P&gt;&lt;P&gt;When it returns true, I&amp;nbsp;call list_folder api and save cursor.&lt;/P&gt;&lt;P&gt;and after few seconds, I will check changes using longpoll api and&amp;nbsp;api&amp;nbsp;returns true immediately,&amp;nbsp;and I call list_folder again, again.&lt;/P&gt;&lt;P&gt;I thinks it will be&amp;nbsp;make error called 'too_many_requests'.&lt;/P&gt;&lt;P&gt;So, I removed shared folder from drive, it works fine. (wait 30~90seconds and returns false).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229187#M12438</guid>
      <dc:creator>오부경</dc:creator>
      <dc:date>2019-05-29T09:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229203#M12443</link>
      <description>&lt;P&gt;When calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;list_folder&lt;/A&gt;, you need to check the has_more value in the response. If it's true, you need to call back to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;list_folder/continue&lt;/A&gt;&amp;nbsp;with the last returned cursor&amp;nbsp;to get more results. You can find more information on how this works in the documentation for list_folder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use a cursor that indicates has_more=true as you are doing,&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-longpoll" target="_self"&gt;list_folder/longpoll&lt;/A&gt;&amp;nbsp;will also immediately indicate that there are more entries to retrieve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once has_more is false, you can then save the cursor and use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-longpoll" target="_self"&gt;list_folder/longpoll&lt;/A&gt;&amp;nbsp;to monitor for new changes.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 20:50:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229203#M12443</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-25T20:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229225#M12444</link>
      <description>&lt;P&gt;Thank you Greg.&lt;/P&gt;&lt;P&gt;I did already list_folder/continue and save cursor&lt;/P&gt;&lt;P&gt;I have no many files in root folder and sub folder. (each folder has 3-10 files)&lt;/P&gt;&lt;P&gt;my code&amp;nbsp;works fine without shared folder.&lt;/P&gt;&lt;P&gt;longpoll returns true just when I&amp;nbsp;add one shared folder.&lt;/P&gt;&lt;P&gt;Added shared folder has 3-4 files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did test longpoll about root folder, then returns true&lt;/P&gt;&lt;P&gt;I did test longpoll about all children folder in the root, then each longpoll returns false.&lt;/P&gt;&lt;P&gt;Only&amp;nbsp;root folder longpoll returns true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps : For test, I call api 'get_latest_cursor' for root folder(empty path), api returns always new cursor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry my poor English.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 04:27:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229225#M12444</guid>
      <dc:creator>오부경</dc:creator>
      <dc:date>2017-06-26T04:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229358#M12450</link>
      <description>Even if you don't have many files in your account, it's possible the list_folder and list_folder/continue results will be paginated, so you should make sure your app is always checking has_more and calling back if it's true.&lt;BR /&gt;&lt;BR /&gt;If the API isn't working as expected though, please share the API calls an unexpected output so we can look into it. Be sure to redact the access token, but please include the cursors. You can share privately here if you'd prefer:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt;</description>
      <pubDate>Mon, 26 Jun 2017 20:56:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229358#M12450</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-26T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229427#M12457</link>
      <description>&lt;P&gt;I build test code and only run Test function.&lt;/P&gt;
&lt;P&gt;Thanks you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// for TEST
public class MyDropBoxFile
{
&amp;nbsp;public string Filename;
&amp;nbsp;public string Cursor;
&amp;nbsp;public MyDropBoxFile(string path)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;Filename = path;
&amp;nbsp;}
}
//
internal List&amp;lt;object&amp;gt; GetFolderList(MyDropBoxFile PathFile)
{
&amp;nbsp;List&amp;lt;object&amp;gt; dataList = new List&amp;lt;object&amp;gt;();
&amp;nbsp;string path = PathFile.Filename;
&amp;nbsp;if (path == "/")
&amp;nbsp;&amp;nbsp;path = String.Empty;
&amp;nbsp;Task task = Task.Run(async () =&amp;gt;
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;try
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;ListFolderResult result = await Client.Files.ListFolderAsync(path).ConfigureAwait(false);
&amp;nbsp;&amp;nbsp;&amp;nbsp;while (result != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (String.IsNullOrEmpty(result.Cursor) == false)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("ListFolderAsync result cursor : " + result.Cursor);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PathFile.Cursor = result.Cursor; // Keep cursor
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("ListFolderAsync result cursor is empty");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (Metadata file in result.Entries)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dataList.Add(file);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (result.HasMore)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("ListFolderAsync result HasMore is true");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result = await Client.Files.ListFolderContinueAsync(new ListFolderContinueArg(result.Cursor));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("ListFolderAsync result HasMore is false");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;catch (Exception ex)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGERROR("ListFolderAsync Fail : Exception : " + ex.Message);
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;});
&amp;nbsp;task.Wait();
&amp;nbsp;return dataList;
}
internal bool IsChanged(MyDropBoxFile PathFile)
{
&amp;nbsp;bool Changed = false;
&amp;nbsp;Task task = Task.Run(async () =&amp;gt;
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;try
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;var longpoll = await Client.Files.ListFolderLongpollAsync(PathFile.Cursor);
&amp;nbsp;&amp;nbsp;&amp;nbsp;Changed = longpoll.Changes;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;catch (Exception ex)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGERROR("ListFolderLongpollAsync Fail : " + ex.Message);
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;});
&amp;nbsp;task.Wait();
&amp;nbsp;return Changed;
}
void Test()
{
&amp;nbsp;MyDropBoxFile file = new MyDropBoxFile("/");
&amp;nbsp;GetFolderList(file);
&amp;nbsp;Program.LOGDEBUG("GetFolderList CURSOR : " + file.Cursor);
&amp;nbsp;for (int i = 0; i &amp;lt; 10; i++)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;if (IsChanged(file))
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("IsChanged returns true");
&amp;nbsp;&amp;nbsp;&amp;nbsp;GetFolderList(file);
&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("GetFolderList CURSOR : " + file.Cursor);
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;Program.LOGDEBUG("IsChanged returns false");
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;Thread.Sleep(3000);
&amp;nbsp;}
}
//==================&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TESTCASE 1: If i added a shared folder(read/write access) to my drive. OUTPUT:&lt;/P&gt;
&lt;P&gt;2017-06-27 13:23:30,920 [DEBUG] ListFolderAsync result cursor : AAGc5OGsaskkYUu4aRmfOmV3SkjpOcNfdg9w6bHlb65ScaDhZaOo6Hd7OGcDX-nVY0C7mbPWZvE2PmIax7exm43-fIxMLaE_F0kngVyQO_kil59gGApZwfO-BB9gWrlqnjkcnw-qsqUbKq_mry6FzUo9-3f12V3cq7VlQCdXa93pm1K-xa974lFrElc9YeQLQKmFd57JkWSo0qOCVmko2L72&lt;BR /&gt;2017-06-27 13:23:30,920 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:30,920 [DEBUG] GetFolderList CURSOR : AAGc5OGsaskkYUu4aRmfOmV3SkjpOcNfdg9w6bHlb65ScaDhZaOo6Hd7OGcDX-nVY0C7mbPWZvE2PmIax7exm43-fIxMLaE_F0kngVyQO_kil59gGApZwfO-BB9gWrlqnjkcnw-qsqUbKq_mry6FzUo9-3f12V3cq7VlQCdXa93pm1K-xa974lFrElc9YeQLQKmFd57JkWSo0qOCVmko2L72&lt;BR /&gt;2017-06-27 13:23:31,783 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:32,183 [DEBUG] ListFolderAsync result cursor : AAHu00Dl5aNvLxjYe12hvAU89ZjnRZD4N0yKY1TPPOautM6Bfk1Z_Ov8Cegh_4k9KlYMz6mlVQkcU-rpf4K-31tsCXyWv-J2OEYFUvD1P6mfzfArURF_BoBdD3NbC_cd0qS74VnnNdGxiO9Qe9JWKvqCmdo4lfiAdrmyaH9rCWQOaDJ0uVlK5DZYBtcxKa4EKfW4CfSjiYhmcWuSNkpoox-d&lt;BR /&gt;2017-06-27 13:23:32,183 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:32,199 [DEBUG] GetFolderList CURSOR : AAHu00Dl5aNvLxjYe12hvAU89ZjnRZD4N0yKY1TPPOautM6Bfk1Z_Ov8Cegh_4k9KlYMz6mlVQkcU-rpf4K-31tsCXyWv-J2OEYFUvD1P6mfzfArURF_BoBdD3NbC_cd0qS74VnnNdGxiO9Qe9JWKvqCmdo4lfiAdrmyaH9rCWQOaDJ0uVlK5DZYBtcxKa4EKfW4CfSjiYhmcWuSNkpoox-d&lt;BR /&gt;2017-06-27 13:23:35,556 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:35,909 [DEBUG] ListFolderAsync result cursor : AAHNmC3IA4hHEYmji8hV0PSkp58gcJHHsq1rRuE1LuUFk7hudcMOYCajiqHhHzt-Zygdj27kUgxfRW4sViv-d_yPFcbSVTQT7BeoOBEaEnU6yRc6kMquR0svOhmMq3A4OW_HEnEwwKm1vWfBB79SEMR3Z_NVbUNUnzbhgQRGzi8RuQe59vuQF1cCyW9ebLwfLTCDSG_7lvy0TnUK1VtI5fwH&lt;BR /&gt;2017-06-27 13:23:35,909 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:35,925 [DEBUG] GetFolderList CURSOR : AAHNmC3IA4hHEYmji8hV0PSkp58gcJHHsq1rRuE1LuUFk7hudcMOYCajiqHhHzt-Zygdj27kUgxfRW4sViv-d_yPFcbSVTQT7BeoOBEaEnU6yRc6kMquR0svOhmMq3A4OW_HEnEwwKm1vWfBB79SEMR3Z_NVbUNUnzbhgQRGzi8RuQe59vuQF1cCyW9ebLwfLTCDSG_7lvy0TnUK1VtI5fwH&lt;BR /&gt;2017-06-27 13:23:39,291 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:39,691 [DEBUG] ListFolderAsync result cursor : AAHSnSi_2OBrCp9A2sKf4spo-_2wg01q3ldglng6S1UaOlsrw-slvhKL5NCZtOskjG4HZ9ZC5VIaEzISTWy3su-Qgy57OUMHGRBCmtgVFZfieQfknrYJNPSKliJwCsxPjzQZaggIu_F9wK9yqadkiMptttOTqwn4Bm18b50WgxfRqIKi_PucHSmHp8yA2QTaoT_DTOCw_S48Qdq_6oci92e-&lt;BR /&gt;2017-06-27 13:23:39,691 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:39,691 [DEBUG] GetFolderList CURSOR : AAHSnSi_2OBrCp9A2sKf4spo-_2wg01q3ldglng6S1UaOlsrw-slvhKL5NCZtOskjG4HZ9ZC5VIaEzISTWy3su-Qgy57OUMHGRBCmtgVFZfieQfknrYJNPSKliJwCsxPjzQZaggIu_F9wK9yqadkiMptttOTqwn4Bm18b50WgxfRqIKi_PucHSmHp8yA2QTaoT_DTOCw_S48Qdq_6oci92e-&lt;BR /&gt;2017-06-27 13:23:43,063 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:43,447 [DEBUG] ListFolderAsync result cursor : AAGWl4_PXFJ7EgSQU7fSg1FMc08xQtvFzuFADLMVuwqOpCNVZw8HEgjkKIsZUapF4J52tD9VtHEZ1Vlb4R3UdhB9zR_9bf-uvRhlwjkod8XImUsoMc1VzKy-FBIvbPh5bqXp_QrwOjLXpqEASVDa5_0pAOVUdqJQSXFZEPHnd8vhpVmhIenvrQLj47a-A7-ilvmfG_gGmA--QyuO1leasLnn&lt;BR /&gt;2017-06-27 13:23:43,447 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:43,447 [DEBUG] GetFolderList CURSOR : AAGWl4_PXFJ7EgSQU7fSg1FMc08xQtvFzuFADLMVuwqOpCNVZw8HEgjkKIsZUapF4J52tD9VtHEZ1Vlb4R3UdhB9zR_9bf-uvRhlwjkod8XImUsoMc1VzKy-FBIvbPh5bqXp_QrwOjLXpqEASVDa5_0pAOVUdqJQSXFZEPHnd8vhpVmhIenvrQLj47a-A7-ilvmfG_gGmA--QyuO1leasLnn&lt;BR /&gt;2017-06-27 13:23:46,819 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:47,235 [DEBUG] ListFolderAsync result cursor : AAFmQ-D-iKpaRuup7hlIxrYeYKkUNXxkyHPFdpeKBDecLzh0QeDeHeMbkXtsZQVtLbiEmsqgc4sh9oq0tMHockcVCHHQYTXq01__cBpeHBFLlLfVyeXqpmdBKafNoTQdWKEALkbTNssgP1aZvWFRGYP2dlU1RI8GqOu_VuMX0d3O3L-i7ZCTOS2Td6XYbaMBbURqf3m4NdWhQU5G89hwyfA9&lt;BR /&gt;2017-06-27 13:23:47,235 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:47,235 [DEBUG] GetFolderList CURSOR : AAFmQ-D-iKpaRuup7hlIxrYeYKkUNXxkyHPFdpeKBDecLzh0QeDeHeMbkXtsZQVtLbiEmsqgc4sh9oq0tMHockcVCHHQYTXq01__cBpeHBFLlLfVyeXqpmdBKafNoTQdWKEALkbTNssgP1aZvWFRGYP2dlU1RI8GqOu_VuMX0d3O3L-i7ZCTOS2Td6XYbaMBbURqf3m4NdWhQU5G89hwyfA9&lt;BR /&gt;2017-06-27 13:23:50,615 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:51,021 [DEBUG] ListFolderAsync result cursor : AAFnYct-TkyTGcD8pDozc9wiKBQL2kNDgFrMJYLg1GY33UMsFoD976SYY4pe8xP6aa0Bus5TWN8yMsPQeNx1N0SrDGIkme_LQtk2mnmfrCtHspJrrCp0qHt8TM4eG7HrVPpWWag2XVIkPX7e8E0GjcFv4uBHwoyiG5kcXsNwivO5l2d_hD-ZUAexTNqOM60dKbg0AjmjYqDHOFzLew3wG_3g&lt;BR /&gt;2017-06-27 13:23:51,021 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:51,037 [DEBUG] GetFolderList CURSOR : AAFnYct-TkyTGcD8pDozc9wiKBQL2kNDgFrMJYLg1GY33UMsFoD976SYY4pe8xP6aa0Bus5TWN8yMsPQeNx1N0SrDGIkme_LQtk2mnmfrCtHspJrrCp0qHt8TM4eG7HrVPpWWag2XVIkPX7e8E0GjcFv4uBHwoyiG5kcXsNwivO5l2d_hD-ZUAexTNqOM60dKbg0AjmjYqDHOFzLew3wG_3g&lt;BR /&gt;2017-06-27 13:23:54,420 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:54,771 [DEBUG] ListFolderAsync result cursor : AAFSGLFZByg4yBITx8a158MhwUWtLeum2HHEkQpScrK4rZ-UioWqHS475zeh9rrt7I5L9xhc-9ZGZGalYlMOGgTff80z7JeWkCJpnMMmuMHpw5jrsCu0sUZY6Yj7oOUuDAdr-Hwhgh8hEM3z54KIba72T_IVpemprW4qgVJsvWb9gAk_ph-11Ji6T2qPSlGtLzOODhYeLFrKUSZpsBM24VCl&lt;BR /&gt;2017-06-27 13:23:54,786 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:54,786 [DEBUG] GetFolderList CURSOR : AAFSGLFZByg4yBITx8a158MhwUWtLeum2HHEkQpScrK4rZ-UioWqHS475zeh9rrt7I5L9xhc-9ZGZGalYlMOGgTff80z7JeWkCJpnMMmuMHpw5jrsCu0sUZY6Yj7oOUuDAdr-Hwhgh8hEM3z54KIba72T_IVpemprW4qgVJsvWb9gAk_ph-11Ji6T2qPSlGtLzOODhYeLFrKUSZpsBM24VCl&lt;BR /&gt;2017-06-27 13:23:58,158 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:23:58,527 [DEBUG] ListFolderAsync result cursor : AAEgJPkNvGsgId0qiFBhKpK9-ikvAlriI5JP_-eImvMdMquyfpWJZUPtz-YsZTj_CKmgOAgfg3m2YlPDzDnQu6o8sLg67z2-ggm60f0d6CaM4PDOLkp6sDeypTad1Fw-8VHR2AXMIgqwVtycPosTCi6hjQJg34wyg775-jNXU7WgRfBHBHGAFFjJGc6FlWy4eiJZTrj6WonGakEE0eocU8Yu&lt;BR /&gt;2017-06-27 13:23:58,527 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:23:58,527 [DEBUG] GetFolderList CURSOR : AAEgJPkNvGsgId0qiFBhKpK9-ikvAlriI5JP_-eImvMdMquyfpWJZUPtz-YsZTj_CKmgOAgfg3m2YlPDzDnQu6o8sLg67z2-ggm60f0d6CaM4PDOLkp6sDeypTad1Fw-8VHR2AXMIgqwVtycPosTCi6hjQJg34wyg775-jNXU7WgRfBHBHGAFFjJGc6FlWy4eiJZTrj6WonGakEE0eocU8Yu&lt;BR /&gt;2017-06-27 13:24:01,892 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:24:02,262 [DEBUG] ListFolderAsync result cursor : AAGaM9u4S5fYS4Lk0MBDsWxaRRcQytzhRD-XF9IgF5ZrjMnFH3gXjHkWNQn8MI_jFK8pgWoWR97Er0OUk8pqGuzO2f4M9S_a0PCBasqEBZ4P6F0Msw3s9tAxBhW6SW-kzReWR9Pz-WXRioaC2IxaLx3RJsUNNRbaS-XM8jJQbM0h7zccV1eF60KxM0ParoM9A_5fQrIbkzheGkGbXXsQIuHG&lt;BR /&gt;2017-06-27 13:24:02,262 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:24:02,262 [DEBUG] GetFolderList CURSOR : AAGaM9u4S5fYS4Lk0MBDsWxaRRcQytzhRD-XF9IgF5ZrjMnFH3gXjHkWNQn8MI_jFK8pgWoWR97Er0OUk8pqGuzO2f4M9S_a0PCBasqEBZ4P6F0Msw3s9tAxBhW6SW-kzReWR9Pz-WXRioaC2IxaLx3RJsUNNRbaS-XM8jJQbM0h7zccV1eF60KxM0ParoM9A_5fQrIbkzheGkGbXXsQIuHG&lt;BR /&gt;2017-06-27 13:24:05,635 [DEBUG] IsChanged returns true&lt;BR /&gt;2017-06-27 13:24:06,013 [DEBUG] ListFolderAsync result cursor : AAHGWo0QMte94lLPvPGVN8BEuBQzkBUXSR546pLdlDDN7RWI-TG76CNFqqLXOWmhbNWAbEsZrJhwreaxssZCAKQxnlAsABXyxf-7MEZARbkL4cdpSSoAfbS9izRIrrvOOsRwacbje-xqrooC4UkuTBfpQkCZDGeccULXJKSUobU54ma0EVZYIN9WsEuwwnmWRB_0zTJU5BtwFBrbRxAr4A-c&lt;BR /&gt;2017-06-27 13:24:06,013 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:24:06,013 [DEBUG] GetFolderList CURSOR : AAHGWo0QMte94lLPvPGVN8BEuBQzkBUXSR546pLdlDDN7RWI-TG76CNFqqLXOWmhbNWAbEsZrJhwreaxssZCAKQxnlAsABXyxf-7MEZARbkL4cdpSSoAfbS9izRIrrvOOsRwacbje-xqrooC4UkuTBfpQkCZDGeccULXJKSUobU54ma0EVZYIN9WsEuwwnmWRB_0zTJU5BtwFBrbRxAr4A-c&lt;/P&gt;
&lt;P&gt;TESTCASE 2 : Just remove a shared folder from my drive and test again. OUTOUT:&lt;BR /&gt;2017-06-27 13:27:14,896 [DEBUG] ListFolderAsync result cursor : AAHA6xuh9msxmApG3USBbTi6tOyaowlz-ZbSuoH3HjFyQ_eymn-YII03nNmuAD0ltM7w9mS1wYA61Koum27agcjqFQ_Xszf-00QBKUU0QbGuUe_ifpOl8MBBRCbEHtIZFS_bg9f-CeYXNrFBvAFGCEd2OMr8WGd4z1M2tK3SlmBqgw&lt;BR /&gt;2017-06-27 13:27:14,896 [DEBUG] ListFolderAsync result HasMore is false&lt;BR /&gt;2017-06-27 13:27:14,911 [DEBUG] GetFolderList CURSOR : AAHA6xuh9msxmApG3USBbTi6tOyaowlz-ZbSuoH3HjFyQ_eymn-YII03nNmuAD0ltM7w9mS1wYA61Koum27agcjqFQ_Xszf-00QBKUU0QbGuUe_ifpOl8MBBRCbEHtIZFS_bg9f-CeYXNrFBvAFGCEd2OMr8WGd4z1M2tK3SlmBqgw&lt;BR /&gt;2017-06-27 13:27:46,387 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:28:21,830 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:29:08,350 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:29:57,361 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:30:31,179 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:31:14,460 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:32:01,208 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:32:53,843 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:33:34,006 [DEBUG] IsChanged returns false&lt;BR /&gt;2017-06-27 13:34:30,179 [DEBUG] IsChanged returns false&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 00:31:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229427#M12457</guid>
      <dc:creator>오부경</dc:creator>
      <dc:date>2017-06-28T00:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229601#M12477</link>
      <description>Thanks! That's helpful. We're looking into it.</description>
      <pubDate>Wed, 28 Jun 2017 00:58:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/229601#M12477</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-28T00:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: longpoll api returns always true when I added shared folder to my drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/230591#M12546</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm sorry for the short English. I used Google Translator&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have read dropbox documents&amp;nbsp;very deeply again on this issue.&lt;/P&gt;&lt;P&gt;If I use get_lastest_cursor and longpoll to get&amp;nbsp;changes only, I'm using it wrong.&lt;/P&gt;&lt;P&gt;I realized I could get a Delta using the "list_folder/continue" call.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, I came to understand the relationship between Cursor and Delta in turn.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've found that it works well only with a good understanding of the behavior of get_lastest_cursor, longpoll, and list_folder/continue.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After modifying the code, it works fine now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For someone like me, leave the reference code below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks Greg K.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;void CheckChanges()
{
	string LastCursor = String.Empty;

	// first step : get new cursor and keep
	Task task = Task.Run(async () =&amp;gt;
	{
		ListFolderArg arg = new ListFolderArg("", true, false, true, false);
		var result = await Client.Files.ListFolderGetLatestCursorAsync(arg);
		LastCursor = result.Cursor;
	});
	task.Wait();

	// loop : detect changes and get delta
	while(!EndOfCheck)
	{
		bool doGetDelta = false;
		Task task = Task.Run(async () =&amp;gt;
		{
			try
			{
				var longpoll = await Client.Files.ListFolderLongpollAsync(PathFile.Cursor);

				doGetDelta = longpoll.Changes;
			}
			catch
			{
			}
		});
		task.Wait();

		if(doGetDelta)
		{
			List&amp;lt;MyChangeInfo&amp;gt; changeList = new List&amp;lt;MyChangeInfo&amp;gt;();
			ListFolderContinueArg arg = new ListFolderContinueArg(LastChangeCursor);
			Task task = Task.Run(async () =&amp;gt;
			{
				try
				{
					var continueResult = await Client.Files.ListFolderContinueAsync(arg);
					LastChangeCursor = continueResult.Cursor; // keep cursor
					if (continueResult.Entries != null &amp;amp;&amp;amp; continueResult.Entries.Count &amp;gt; 0)
					{
						foreach (var entry in continueResult.Entries)
						{
							MyChangeInfo change = new MyChangeInfo();
							change.key = entry.PathLower;
							change.metadata = entry;
							change.removed = entry.IsDeleted;
							changeList.Add(change);
						}
					}
				}
				catch
				{
				}
			});
			task.Wait();

			if(newList.Count &amp;gt; 0)
			{
				// Do Apply Changes
				foreach(var change in newList)
				{
					if(change.removed)
					{
					// do delete file or folder
					}
					else
					{
					// do update or add
					}
				}
			}
		}
	}
}

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;HR /&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:17:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/longpoll-api-returns-always-true-when-I-added-shared-folder-to/m-p/230591#M12546</guid>
      <dc:creator>오부경</dc:creator>
      <dc:date>2017-07-04T12:17:02Z</dc:date>
    </item>
  </channel>
</rss>

