function zoomapi_get_zoom_users_tracker_info in Zoom API 7.2
Get Zoom Users Tracker Info.
2 calls to zoomapi_get_zoom_users_tracker_info()
- zoomapi_get_zoom_user_tracker_info in ./
zoomapi.module - Get Zoom User Tracker Info.
- zoomapi_update_7207 in ./
zoomapi.install - Add timezone to zoom user accounts.
File
- ./
zoomapi.module, line 471 - Main file for the Zoom API module.
Code
function zoomapi_get_zoom_users_tracker_info(array $uids_or_emails = []) {
$realm = zoomapi_realm();
$sql = "\n SELECT\n uid,\n realm,\n zoom_user_id,\n zoom_email\n FROM {zoomapi_users}\n WHERE realm = :realm\n ";
$sql_args = [
':realm' => $realm,
];
if ($uids_or_emails) {
$sql .= "\n AND (\n uid IN (:uids)\n OR zoom_email IN (:emails)\n )\n ";
$sql_args += [
':uids' => $uids_or_emails,
':emails' => $uids_or_emails,
];
}
$results = db_query($sql, $sql_args)
->fetchAllAssoc('zoom_email');
return $results;
}