I’m trying to implement an endpoint to connect with Pipedrive’s webhooks. Currently I’m stuck because I can’t fetch the body of the webhook’s request with PHP. I am able to get the headers of the request but the body is blank.
When I copy the webhook’s request (from requestbin) and send it using Postman I actually can get the request’s body with PHP. I really can’t find what I’m doing wrong here. The headers are equal in both requests, the only difference is that the request from pipedrive doesn’t contain a body when reading it using PHP.
I am facing same problem, it shows output on webhook.site but not working with my server url, i can receive request but there is no dat areceived. i have tried with adding / [slash] at the end but still not working.
Below is the php code which i used to receive data
<?php
$data = json_encode($_POST);
?>
it looks like its not sending POST data, otherwise it should work using above code.
Is there any other technique to receive POST data ? then please let me know, i can try that.