<?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: Webhook notification .NET in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331462#M19374</link>
    <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I read it,&lt;BR /&gt;I store the latest cursor and deleted 1,2.. files on the dropbox, but when used postman to call &lt;SPAN&gt;&lt;A href="https://api.dropboxapi.com/2/files/list_folder/continue&amp;nbsp;" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder/continue&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;api, i don't see any entries item&lt;BR /&gt;What have i done wrong?&lt;BR /&gt;image link:&amp;nbsp;&lt;A href="http://prntscr.com/mroei2" target="_blank"&gt;http://prntscr.com/mroei2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 06:41:49 GMT</pubDate>
    <dc:creator>pcuycs</dc:creator>
    <dc:date>2019-03-01T06:41:49Z</dc:date>
    <item>
      <title>Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/257043#M14900</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on a .NET app, which is integrated with the dropbox api. I managed to upload, list, delete files without any problems. Now, I am trying to use webhooks for my app. I have a dedicated dropbox account which linked to my app and this account has "full access" to my dropbox storage.&lt;BR /&gt;We want Dropbox to notify my app when files are added or deleted. After going through documentation &lt;A href="https://www.dropbox.com/developers/reference/webhooks#tutorial" target="_self"&gt;[https://www.dropbox.com/developers/reference/webhooks#tutorial], &lt;/A&gt;I am managed to get webhook trigger on file add/delete of a file in my storage using ListFolderContinue API. So far so good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is mode code snippet&lt;/P&gt;&lt;PRE&gt;//---------------------------------
var cursor = getPreviousCursor( user);  // to get previously stored cursor
using (var client = new DropboxClient(accessToken))
{
 ListFolderResult list = await client.Files.ListFolderContinueAsync(cursor);
 bool bHasMore = true;
    while (bHasMore)
    {
        foreach (var entry in list.Entries)
        {
            if (entry.IsDeleted || entry.IsFolder)
                continue;
            string fname = entry.Name;
        }
        cursor = list.Cursor;
        bHasMore = list.HasMore;
        UpdateCursor(user, cursor); // to store latest cursor
    }
}
//--------------------------------&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now here comes the problem that I am facing.&lt;BR /&gt;Above code works only if I modify files in root folder ("/") folder of the dropbox storage. If I modify a file in a folder e.g. "/Sample/Project/test.txt", I receive webhook trigger but "ListFolderResult list" is always empty.&lt;/P&gt;&lt;P&gt;To sumarize I am not getting information of modified files in the folders except root folder of dropbox storage.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/257043#M14900</guid>
      <dc:creator>Babel3d</dc:creator>
      <dc:date>2019-05-29T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/257090#M14906</link>
      <description>By default, the listFolder/listFolderContinue methods will only return items in the folder you specify, and not in nested folders under that.&lt;BR /&gt;&lt;BR /&gt;If you want nested results, you'll need to set recursive=true when first calling listFolder:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm&lt;/A&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:40:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/257090#M14906</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-18T15:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/257297#M14921</link>
      <description>&lt;P&gt;Thanks. It worked.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 04:39:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/257297#M14921</guid>
      <dc:creator>Babel3d</dc:creator>
      <dc:date>2017-12-20T04:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331089#M19354</link>
      <description>&lt;P&gt;hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/263654"&gt;@Babel3d&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm working with dropbox webhook using asp.net api&lt;BR /&gt;I was created 2 uri, one for verify, another for received response message from dropbox and both are successfully.&lt;BR /&gt;the response message content&lt;BR /&gt;{"list_folder": {"accounts": ["dbid:yyyyyyyyyyyyy"]}, "delta": {"users": [xxxxxxxxxxxx]}}&lt;/P&gt;&lt;P&gt;But with above message&lt;BR /&gt;1. I don't know what are type of notifications raised? Add, Modified, Moved, Deleted -&amp;gt; at files &amp;amp; folders level ?&lt;BR /&gt;2. How do i know what is the file name and who has changed?&lt;BR /&gt;3. what does [xxxxxxxxxxxx] mean?&lt;BR /&gt;&lt;BR /&gt;thanks for help!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 04:17:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331089#M19354</guid>
      <dc:creator>pcuycs</dc:creator>
      <dc:date>2019-02-27T04:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331180#M19361</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/669506"&gt;@pcuycs&lt;/a&gt;&amp;nbsp;I&amp;nbsp;recommend reviewing the webhooks tutorial and documentation (be sure to switch to the "documentation" tab for that) as it covers this in detail:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/webhooks" target="_self"&gt;https://www.dropbox.com/developers/reference/webhooks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer your specific questions though:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Webhook notifications are sent for any kind of file/folder changes.&lt;/LI&gt;
&lt;LI&gt;The notifications themselves don't indicate what changed, only that something changed. You need to call the list_folder endpoints to determine what changed.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The "xxxxxxxxxxxx" in your sample is&amp;nbsp;the old API v1 style of user IDs. You do not need to use it. It conveys the same information as the new API v2 style (e.g., "dbid:yyyyyyyyyyyyy" in your sample) which you should use.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:52:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331180#M19361</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-27T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331462#M19374</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I read it,&lt;BR /&gt;I store the latest cursor and deleted 1,2.. files on the dropbox, but when used postman to call &lt;SPAN&gt;&lt;A href="https://api.dropboxapi.com/2/files/list_folder/continue&amp;nbsp;" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder/continue&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;api, i don't see any entries item&lt;BR /&gt;What have i done wrong?&lt;BR /&gt;image link:&amp;nbsp;&lt;A href="http://prntscr.com/mroei2" target="_blank"&gt;http://prntscr.com/mroei2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 06:41:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331462#M19374</guid>
      <dc:creator>pcuycs</dc:creator>
      <dc:date>2019-03-01T06:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331532#M19376</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/669506"&gt;@pcuycs&lt;/a&gt;&amp;nbsp;We'll need some more information to help troubleshoot this issue. Please &lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_self"&gt;open a new thread&lt;/A&gt; with additional details so we can help with this. Specifically, please share:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the request and response for&amp;nbsp;/2/files/list_folder&lt;/LI&gt;
&lt;LI&gt;information about where/how you deleted the files&lt;/LI&gt;
&lt;LI&gt;the webhook notification&lt;/LI&gt;
&lt;LI&gt;the request and response for&amp;nbsp;/2/files/list_folder/continue&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Be sure to redact the access token of course.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:16:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331532#M19376</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-01T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331886#M19390</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;it worked for me, mabe i mistake app token.&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:14:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-NET/m-p/331886#M19390</guid>
      <dc:creator>pcuycs</dc:creator>
      <dc:date>2019-03-04T08:14:41Z</dc:date>
    </item>
  </channel>
</rss>

