<?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: WebHooks in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/378237#M21197</link>
    <description>&lt;P&gt;It really works! There was a problem on my server receiving notifications, but I did not notice that at time due to some latency of application console. So the correct authorization workflow is enough for receiving hook requests.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 10:14:25 GMT</pubDate>
    <dc:creator>Infarch</dc:creator>
    <dc:date>2019-11-13T10:14:25Z</dc:date>
    <item>
      <title>Can you help me understand and use WebHooks?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/376663#M21114</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;I experience problem with understanding and using web hooks. Hope that someone can help me. So, let me explain the case.&lt;/P&gt;
&lt;P&gt;I use Chooser on my site, configured for getting 'preview' links. I send these links to the server, which downloads and stores files. I want to extend this functionality and monitor changes in files at user side. When a new version is uploaded, my site automatically gets this version.&lt;/P&gt;
&lt;P&gt;That could be implemented by keeping the link and asking API with some interval. But I don't want to spam API by a large number of request. So the idea is to use web hooks. I've registered a hook for my application. But it was called only once, during verification. Chosing of files in Chooser does not fire events.&lt;/P&gt;
&lt;P&gt;I think that my way is wrong, but cannot figure out how to achieve my goal. May be someone could help me?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 23:34:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/376663#M21114</guid>
      <dc:creator>Infarch</dc:creator>
      <dc:date>2019-11-07T23:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: WebHooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/376778#M21121</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/webhooks" target="_self"&gt;Dropbox webhooks&lt;/A&gt; are only sent for changes in the accounts "connected" or "linked" to your app. That is, accounts for users who went through the OAuth app authorization flow&amp;nbsp;to authorize your app to access their accounts.&lt;/P&gt;
&lt;P&gt;When you use the&amp;nbsp;Dropbox Chooser, users can share links to specific files/folders with your app, without fully connecting their accounts to your app. The Chooser lets the user just choose which specific item(s) to supply to your app, without going through the full OAuth app authorization.&amp;nbsp;Dropbox doesn't offer a way to get webhook notifications for changes to shared links just from having the shared links.&lt;/P&gt;
&lt;P&gt;That being the case, you won't get any webhook notifications for users who just used the Chooser for your app. If you want webhook notifications, you'll need to prompt them to authorize your app. You can find more information on how that works in &lt;A href="https://www.dropbox.com/developers/reference/oauth-guide" target="_self"&gt;the OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;the authorization documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:04:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/376778#M21121</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-11-06T16:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: WebHooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/377682#M21176</link>
      <description>&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;Trying to follow your suggestion, I've changed my code a bit. Now the workflow is:&lt;/P&gt;&lt;P&gt;a) I redirect a user to authorization endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropboxforum.com/" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=&amp;lt;my_app_key&amp;gt;&amp;amp;response_type=code&amp;amp;redirect_uri=&amp;lt;my_callback_url&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;b) &amp;lt;my_callback_url&amp;gt; gets &amp;lt;code&amp;gt; from dropbox.&lt;/P&gt;&lt;P&gt;c) I ask dropbox again for a token, posting the following values:&lt;/P&gt;&lt;P&gt;my $endpoint = '&lt;A href="https://api.dropbox.com/oauth2/token" target="_blank"&gt;https://api.dropbox.com/oauth2/token&lt;/A&gt;';&lt;BR /&gt;my $post_parameters = {&lt;BR /&gt;code =&amp;gt; $code,&lt;BR /&gt;grant_type =&amp;gt; 'authorization_code',&lt;BR /&gt;client_id =&amp;gt; $AppKey,&lt;/P&gt;&lt;P&gt;redirect_uri=&amp;gt;$uri,&lt;BR /&gt;client_secret =&amp;gt; $AppSecret&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;As the result I get a token which allows to download files not only by shared url, but also by ID.&lt;/P&gt;&lt;P&gt;But there still is a problem with hooks: I do not receive calls from Dropbox when I (or other test users) change files in personal account or upload new ones. May be I have&amp;nbsp; to start monitoring by some explicit command?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 10:50:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/377682#M21176</guid>
      <dc:creator>Infarch</dc:creator>
      <dc:date>2019-11-11T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: WebHooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/377860#M21180</link>
      <description>&lt;P&gt;What you've described here is the correct way to connect a user if you want webhook notifications for changes in their account. You don't need to send any other explicit command to start monitoring.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're still not able to&amp;nbsp;receive the webhook notifications, please &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; with the details (the app name, the webhook URI, and the relevant user ID) so we can check on this for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:54:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/377860#M21180</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-11-11T18:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: WebHooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/378237#M21197</link>
      <description>&lt;P&gt;It really works! There was a problem on my server receiving notifications, but I did not notice that at time due to some latency of application console. So the correct authorization workflow is enough for receiving hook requests.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 10:14:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-you-help-me-understand-and-use-WebHooks/m-p/378237#M21197</guid>
      <dc:creator>Infarch</dc:creator>
      <dc:date>2019-11-13T10:14:25Z</dc:date>
    </item>
  </channel>
</rss>

