public function ZoomAPIUser::uploadpicture in Zoom API 7
Upload User Picture.
@todo confirm only jpg/jpeg images.
Parameters
string $zoom_user_id: The user ID generated when the user account was created.
string $image_url: A publicly accessible URL to the image. Must be a jpg/jpeg file.
Return value
array An array containing transaction metadata.
File
- includes/
zoomapi.user.classes.inc, line 281 - User classes for Zoom API.
Class
- ZoomAPIUser
- Zoom API User Class.
Code
public function uploadpicture($zoom_user_id, $image_url) {
$data = [
'id' => $zoom_user_id,
'pic_file' => $image_url,
];
return $this
->sendRequest('user/uploadpicture', $data);
}