Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Top PortionBottom Portion

How to Receive a Webhook (Build an Endpoint)

  • To receive data in the form of FORM/URL:
    • $data = $_POST;
  • To receive data in the form of JSON:
    •  $data = file_get_contents("php://input");
  • You can process this data as you wish. At the end of the script you must return the data in the same format as the Response Type 'JSON or XML'.
  • To test the Webhook follow these testing resources

Sample Scripts

Info
titleSample Script

See the sample endpoint script attached, written in PHP.