You are here

function zoomapi_track_meeting in Zoom API 7.2

Same name and namespace in other branches
  1. 7 zoomapi.module \zoomapi_track_meeting()

Zoom Meeting Tracker.

Track basic meeting information in case a user disconnects and we need to attempt to lookup that meeting info.

1 call to zoomapi_track_meeting()
zoomapi_api_create_meeting in ./zoomapi.api.inc
Create Zoom Meeting.

File

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

Code

function zoomapi_track_meeting(array $zoom_meeting, $entity_type = '', $entity_id = 0) {
  $defaults = [
    'uuid' => '',
    'id' => '',
    'host_id' => '',
    'topic' => '',
    'type' => 0,
    'start_time' => '',
    'duration' => 0,
    'timezone' => '',
    'start_url' => '',
    'join_url' => '',
    'created' => REQUEST_TIME,
    'realm' => zoomapi_realm(),
    'entity_type' => $entity_type,
    'entity_id' => $entity_id,
  ];
  $record = array_merge($defaults, array_intersect_key($zoom_meeting, $defaults));
  db_merge('zoomapi_meetings_index')
    ->key([
    'uuid' => $record['uuid'],
  ])
    ->fields($record)
    ->execute();
}