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?
Sticky Posts
Free webinar: E-signature legality in Latin America
Saludos! Are you wondering if e-signatures are legally valid to use for your business documents in Latin America? We've got your answers! Join us on Thursday, November 21 for an exclusive webinar, where we'll dive into the legality of electronic signatures
Free webinar: Processing transactional paperwork with ease using Zoho Sign and Zoho Finance apps
Hello everyone, Did you know you can securely send, sign, and manage your financial documents directly within Zoho Finance applications? Zoho Sign seamlessly integrates with Zoho Books, Zoho Invoice, Zoho Inventory, Zoho Checkout, Zoho Billing, and Zoho
Zoho Sign: Product updates - Mid - 2024
Hello, everyone! We've crossed the halfway point in 2024, and here's what Zoho Sign has been up to lately. We've been part of several Zoho User Groups, and we've started creating video content for our developers. Along with this, we have once again been
Explore the legality of electronic signatures worldwide with Zoho Sign
Hello, everyone! We are pleased to announce our new initiative exploring the legality of electronic signatures around the globe in detail. As more businesses go digital, understanding the legal requirements for e-signatures across different jurisdictions