echo 'Webhook authentication failed with HTTP status code: ' . $http_status_code;
}
?>
And in Hubspot configuration, the url is 'https:/.../hubspot/webhook.php'.
Is it ok this way ? I am asking because it killed my server when I tried to test it, and I cannot find examples on the internet using this kind of authetication.
Webhooks - authentication type Api key - secret name and secret value - in PHP
SOLVE
Hello. So it is actually quite simple. There are no examples on the internet, and the documentation is poor, it explains more about Hubspot signature than API key. I understood eventually how it works, and here is the working code:
$expectedSecretName = 'word'; // Replace with your expected secret name $expectedSecretValue = 'another_word'; // Replace with your expected secret value
Webhooks - authentication type Api key - secret name and secret value - in PHP
SOLVE
Hello. So it is actually quite simple. There are no examples on the internet, and the documentation is poor, it explains more about Hubspot signature than API key. I understood eventually how it works, and here is the working code:
$expectedSecretName = 'word'; // Replace with your expected secret name $expectedSecretValue = 'another_word'; // Replace with your expected secret value