How to get Webhook response using PHP

How to get Webhook response using PHP

I'm creating a script that will receive response from Zoho Sign Webhook. I use the following condition to trigger the Webhook :


I am able to receive the hit into the Callback URL by saving every response into the database. I'm using a simple code below :

<?php 

@$server=$_SERVER;
@$post=$_POST;
@$get=$_GET;
$data = file_get_contents('php://input');
if(empty($post)){
    $post="emptypost-";
}

if(empty($get)){
    $get="emptyget";
}

$server=json_encode($_SERVER);

$q=mysqli_query($conn,"INSERT INTO `response` VALUES ('','".$data.$post.$get.$server."')");
if($q){
    echo "success";
}else{
    echo "failed".mysqli_error($conn);
}

?>

But i always get empty response using the script above. The $data, $post, or $get variable is always empty.
I'm trying to find the documentation on the Zoho but i only can get this discussion here. Which is not solving my problem.
Any other way to get the response from Zoho Sign Webhook using PHP?

    Access your files securely from anywhere

        All-in-one knowledge management and training platform for your employees and customers.







                              Zoho Developer Community




                                                    • Desk Community Learning Series


                                                    • Digest


                                                    • Functions


                                                    • Meetups


                                                    • Kbase


                                                    • Resources


                                                    • Glossary


                                                    • Desk Marketplace


                                                    • MVP Corner


                                                    • Word of the Day


                                                    • Ask the Experts





                                                              Manage your brands on social media



                                                                    Zoho TeamInbox Resources



                                                                        Zoho CRM Plus Resources

                                                                          Zoho Books Resources


                                                                            Zoho Subscriptions Resources

                                                                              Zoho Projects Resources


                                                                                Zoho Sprints Resources


                                                                                  Qntrl Resources


                                                                                    Zoho Creator Resources



                                                                                        Zoho CRM Resources

                                                                                        • CRM Community Learning Series

                                                                                          CRM Community Learning Series


                                                                                        • Kaizen

                                                                                          Kaizen

                                                                                        • Functions

                                                                                          Functions

                                                                                        • Meetups

                                                                                          Meetups

                                                                                        • Kbase

                                                                                          Kbase

                                                                                        • Resources

                                                                                          Resources

                                                                                        • Digest

                                                                                          Digest

                                                                                        • CRM Marketplace

                                                                                          CRM Marketplace

                                                                                        • MVP Corner

                                                                                          MVP Corner









                                                                                            Design. Discuss. Deliver.

                                                                                            Create visually engaging stories with Zoho Show.

                                                                                            Get Started Now


                                                                                              Zoho Show Resources

                                                                                                Zoho Writer

                                                                                                Get Started. Write Away!

                                                                                                Writer is a powerful online word processor, designed for collaborative work.

                                                                                                  Zoho CRM コンテンツ




                                                                                                    Nederlandse Hulpbronnen


                                                                                                        ご検討中の方