I have Wix ( Editor X ) website that generated webhooks for notifications. I want to save these data into amocrm. However, before saving data I tried to catch the webhook and see what is coming from it. In order to catch incoming webhook I used php and upload my php file in https://www.example.com/webhook.php directory and assigned this into Callback Url. However, when I try to POST the url in POSTMAN, I am getting an empty data. Below what I included into my file.
<?php
if($json = json_decode(file_get_contents("php://input"), true)) {
print_r($json);
$data = $json;
} else{
$data = $json;
print_r($data);
}
?>