You are here

zoomapi.pages.inc in Zoom API 7

Page callbacks for Zoom API module.

File

zoomapi.pages.inc
View source
<?php

/**
 * @file
 * Page callbacks for Zoom API module.
 */

/**
 * 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.
 */
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',
  ]);
}

Functions

Namesort descending Description
zoomapi_webhooks_callback Page callback: Zoom API Webhooks.