Announcement

Collapse
No announcement yet.

Request example WebHooks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Request example WebHooks


    Hello everyone, I wanted to ask what hooks are for. I can't understand its usefulness in espocrm, could you give me a simple example? thank you

  • #2
    Hello. I'll publish video about EspoCRM webhooks.
    Basically you can use webhooks to send some information to other services/applications. For example if you have booking external application, you can use webhooks in EspoCRM to send details of issued invoice to booking app.

    Comment


    • #3

      Thank you for the answer, I understood the concept but I can't understand how the target app receives the data, how to read it in the target app.

      1) I have configured the api user
      2) I created the webhooks that points to the address http://www.prova.it/web.php (example domain)
      which contains
      PHP Code:
      <?php

      $myfile 
      fopen("newfile.txt""w") or die("Unable to open file!");
      $txt '<pre>' print_r(get_defined_vars(), true) . '</pre>';
      fwrite($myfile$txt);
      fclose($myfile);

      ?>

      but it does not write any files

      Comment


      • #4
        Here's a link with an actual code example: https://stackoverflow.com/questions/...ave-them-in-db
        Last edited by telecastg; 08-13-2021, 06:05 PM.

        Comment


        • #5
          I wrote this script to save all webhooks to log file. Just remember about creating folder /logs
          https://dubas.pro/c/?84447d81fa6face...44uUbyKyCPddKf

          Comment

          Working...
          X