You are here

function zoomapi_api_get_meeting in Zoom API 7.2

Get Meeting.

1 call to zoomapi_api_get_meeting()
zoomapi_get_meeting in ./zoomapi.module
Get Meeting.

File

./zoomapi.api.inc, line 229
API callbacks for Zoom API module.

Code

function zoomapi_api_get_meeting($meeting_id) {
  try {
    $zoom_client = zoomapi_client();
    $zoom_meeting = $zoom_client
      ->api('meeting')
      ->fetch($meeting_id);
    return $zoom_meeting;
  } catch (\Exception $e) {
    watchdog(__FUNCTION__, 'Unable to retrieve Zoom meeting @id. Error: @e', [
      '@e' => $e
        ->getMessage(),
      '@id' => $meeting_id,
    ], WATCHDOG_CRITICAL);
    return FALSE;
  }
}