I'm trying to verify a hook in my Podio App.
Here's the code I'm running:
Podio::setup(PODIO_API_ID, PODIO_API_KEY);
// Turn on debugging
Podio::$debug = true;
// Authenticate the app
try {
Podio::authenticate('app', array('app_id' => PODIO_HELPDESK_APP_ID, 'app_token' => PODIO_HELPDESK_APP_TOKEN));
}
catch (PodioError $e) {
// Something went wrong. Examine $e->body['error_description'] for a description of the error.
$dbObject->logger->logDebug("podio exception: ".print_r($e,true) );
}
$dbObject->logger->logDebug("access token: ".print_r( Podio::$oauth->access_token,true)); // Your access token
$dbObject->logger->logDebug("podio event POST: ".print_r($_POST,true) );
$dbObject->logger->logDebug("podio event GET: ".print_r($_GET,true) );
So the page fires when I click the "verify" button on my hooks page - I'm getting some debug info logged. The I'm able to output an access token, but $_POST and $_GET are both empty.
What am I doing wrong?
When webhooks are not received or data is missing the problem is almost always with the URL or the receiving server's configuration. Make sure that: