You are here

function zoomapi_webhooks_callback in Zoom API 7

Same name and namespace in other branches
  1. 7.2 zoomapi.webhooks.inc \zoomapi_webhooks_callback()

Page callback: Zoom API Webhooks.

@todo the $_POST from Zoom is not following their own documentation so for the time being we're just passing the whole POST off.

1 string reference to 'zoomapi_webhooks_callback'
zoomapi_menu in ./zoomapi.module
Implements hook_menu().

File

./zoomapi.pages.inc, line 13
Page callbacks for Zoom API module.

Code

function zoomapi_webhooks_callback() {
  module_invoke_all('zoomapi_webhooks', $_POST);
  if (variable_get('zoomapi_debug', FALSE)) {
    watchdog('zoomapi_debug', 'webhook => !data', [
      '!data' => '<pre>' . print_r($_POST, TRUE) . '</pre>',
    ], WATCHDOG_DEBUG);
  }
  return drupal_json_output([
    'status' => 'ok',
  ]);
}