public function ZoomAPIUser::assistantSet in Zoom API 7
Set User Assistant.
@todo confirm only one assistant per host.
Parameters
string $assistant_email: The email address for the assistant account.
array $host: At least one of the following must be provided. If the zoom_user_id is provided the the email is ignored.
- zoom_user_id: The host Zoom user ID.
- email: The host Zoom user email address.
Return value
array An array containing transaction metadata.
File
- includes/
zoomapi.user.classes.inc, line 207 - User classes for Zoom API.
Class
- ZoomAPIUser
- Zoom API User Class.
Code
public function assistantSet($assistant_email, array $host) {
$data = [
'assistant_email' => $assistant_email,
];
if (!empty($host['zoom_user_id'])) {
$data['id'] = $host['zoom_user_id'];
}
else {
$data['host_email'] = $host['email'];
}
return $this
->sendRequest('user/assistant/set', $data);
}