Sample PHP scripts for your reference

Below is a sample script which needs to be written at your end for collecting the event data posted by Webhooks. This is language as well as platform independent. You can write script in any programming language and collect the data.

 <?php
$pepipost = array();
$http_data = file_get_contents("php://input");
$parts = explode('&', $http_data);
foreach ( $parts as $part ) {
   list($key, $value) = explode('=', $part, 2);
   $pepipost[$key] = $value;
}
foreach($pepipost as $key=>$value) {
   file_put_contents('/tmp/test', "$key\n", FILE_APPEND);
}
echo "Success";
?>

Sample Function to convert Timestamp into Date:
echo date('m/d/Y', 1299446702);

echo date('m/d/Y', 1299446702);