PHP code example of aghilanbaskar / zoom-library

1. Go to this page and download the library: Download aghilanbaskar/zoom-library library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aghilanbaskar / zoom-library example snippets



m = new ZoomLibrary\Zoom([
  'client_id' => 'your-client-id',
  'client_secret' => 'your-client-secret',
  'redirect_uri' => 'your-redirect-uri',
  'credential_path' => 'zoom-oauth-credentials.json'
]);

$oAuthURL = $zoom->oAuthUrl();
echo "<a href='{$oAuthURL}'>{$oAuthURL}</a><br>";

$zoom->token($_GET['code']);

$meetings = $zoom->listMeeting();
or
$meetings = $zoom->listMeeting($user_id, $query);

if($meetings['status'] === false){
 echo 'Request failed - Reason: '.$meetings['message'];
 return;
}
$meetingsData = $meetings['data'];

$meeting = $zoom->createMeeting($user_id, $json);

if($meeting['status'] === false){
 echo 'Request failed - Reason: '.$meeting['message'];
 return;
}
$meetingData = $meeting['data'];

$meetings = $zoom->deleteMeeting($meeting_id, $query);

if($meetings['status'] === false){
 echo 'Request failed - Reason: '.$meetings['message'];
 return;
}
echo $meetings['message'];

$meetings = $zoom->addMeetingRegistrant($meeting_id, $json);

if($meetings['status'] === false){
 echo 'Request failed - Reason: '.$meetings['message'];
 return;
}
$registrationData = $meetings['data'];