You are here

function zoomapi_get_recording_download_tracking_info in Zoom API 7.2

Get recording download tracking info.

3 calls to zoomapi_get_recording_download_tracking_info()
zoomapi_download_meeting_recordings_to_entity in ./zoomapi.module
Download meeting recordings for entity.
zoomapi_get_meeting_recordings in ./zoomapi.module
Get Meeting Recordings.
zoomapi_update_recording_download_tracking in ./zoomapi.module
Update recordings download tracking info.

File

./zoomapi.module, line 1018
Main file for the Zoom API module.

Code

function zoomapi_get_recording_download_tracking_info($meeting_uuid) {
  $record = db_query("\n    SELECT\n      *\n    FROM {zoomapi_recordings_download_tracker}\n    WHERE realm = :realm\n    AND (\n      meeting_uuid = :meeting_uuid\n      OR meeting_id = :meeting_uuid\n    )\n  ", [
    ':realm' => zoomapi_realm(),
    ':meeting_uuid' => $meeting_uuid,
  ])
    ->fetchAssoc();
  if (!empty($record)) {
    $data = is_string($record['data']) ? unserialize($record['data']) : $record['data'];
    if (zoomapi_validate_recording_tracking_info($data)) {
      $record['data'] = $data;
    }
  }
  return $record;
}