<?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: dropbox isn't sending webhooks in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419851#M22549</link>
    <description>&lt;P&gt;I'm glad to hear you already sorted this out. Thanks for sharing your solution!&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 15:24:50 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-05-13T15:24:50Z</dc:date>
    <item>
      <title>dropbox isn't sending webhooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419730#M22544</link>
      <description>&lt;P&gt;&lt;STRONG&gt;what i tried&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the below code is my webhook endpoint&lt;/P&gt;&lt;P&gt;- it responds to the validation request&lt;/P&gt;&lt;P&gt;- and it generates and stores a timestamp into a file called "GTest.txt" each time a request is sent to this function/corresponding route&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  public function webhook_endpoint()
  {
    $report_object = new report;
    $result = "";
    $file_content_prefix = "";

    if (isset($_GET['challenge'])) {
      $result = $_GET['challenge'];
      $file_content_prefix = "Challange";
    } elseif ($report_object-&amp;gt;webhook_endpoint_authenticate() == 1) {
      $file_content_prefix = "Authenticated";
    } else {
      header('HTTP/1.0 403 Forbidden');
      $file_content_prefix = "Not authenticated";
    }

    $timestamp = date('Y-m-d h:i:s a', time());
    $file_content =  $file_content_prefix." ".$timestamp;
    $file_name = "GTest.txt";
    file_put_contents($file_name, $file_content);

    return $result;
  }&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- It validates and generates a timestamp for that request just fine&lt;/P&gt;&lt;P&gt;- but when i change a file in the app's dropbox folder it doesnt generate any new timestamps in my "GTest.txt" file which leads me to believe no webhook request was sent&lt;/P&gt;&lt;P&gt;- i'm editing the dropbox file both on my desktop and on dropbox online (i edited a test files content and name and also added a .png file) but no webhook request seemed to have sent. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;P.s&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is this a glitch? if so please explain why this kind of glitch would happen?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 10:39:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419730#M22544</guid>
      <dc:creator>ivan006</dc:creator>
      <dc:date>2020-05-13T10:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: dropbox isn't sending webhooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419838#M22546</link>
      <description>&lt;P&gt;Ok i had to set an exception in my cross-site request forgery&amp;nbsp; middleware lol&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=nGXo061pibU&amp;amp;t=890s" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=nGXo061pibU&amp;amp;t=890s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the webhook error messages in the app console is what save me! but it takes a couple of errors before it will log them unfortunately &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@EA4D5AD6084EAC95CB4E739348E74CC6/emoticons/1f615.png" alt=":confused_face:" title=":confused_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 15:44:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419838#M22546</guid>
      <dc:creator>ivan006</dc:creator>
      <dc:date>2020-05-13T15:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: dropbox isn't sending webhooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419851#M22549</link>
      <description>&lt;P&gt;I'm glad to hear you already sorted this out. Thanks for sharing your solution!&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 15:24:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/419851#M22549</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-13T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: dropbox isn't sending webhooks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/422471#M22645</link>
      <description>public function webhook_endpoint()&lt;BR /&gt;{&lt;BR /&gt;$report_object = new report;&lt;BR /&gt;$result = "";&lt;BR /&gt;$file_content_prefix = "";&lt;BR /&gt;&lt;BR /&gt;if (isset($_GET['challenge'])) {&lt;BR /&gt;$result = $_GET['challenge'];&lt;BR /&gt;$file_content_prefix = "Challange";&lt;BR /&gt;} elseif ($report_object-&amp;gt;webhook_endpoint_authenticate() == 1) {&lt;BR /&gt;$file_content_prefix = "Authenticated";&lt;BR /&gt;} else {&lt;BR /&gt;header('HTTP/1.0 403 Forbidden');&lt;BR /&gt;$file_content_prefix = "Not authenticated";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$timestamp = date('Y-m-d h:i:s a', time());&lt;BR /&gt;$file_content = $file_content_prefix." ".$timestamp;&lt;BR /&gt;$file_name = "GTest.txt";&lt;BR /&gt;file_put_contents($file_name, $file_content);&lt;BR /&gt;&lt;BR /&gt;return $result;&lt;BR /&gt;}</description>
      <pubDate>Thu, 21 May 2020 05:24:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropbox-isn-t-sending-webhooks/m-p/422471#M22645</guid>
      <dc:creator>Mohdsyafiq</dc:creator>
      <dc:date>2020-05-21T05:24:18Z</dc:date>
    </item>
  </channel>
</rss>

