1. Go to this page and download the library: Download macsidigital/laravel-zoom 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/ */
macsidigital / laravel-zoom example snippets
return [
'apiKey' => env('ZOOM_CLIENT_KEY'),
'apiSecret' => env('ZOOM_CLIENT_SECRET'),
'baseUrl' => 'https://api.zoom.us/v2/',
'token_life' => 60 * 60 * 24 * 7, // In seconds, default 1 week
'authentication_method' => 'jwt', // Only jwt compatible at present
'max_api_calls_per_request' => '5' // how many times can we hit the api to return results for an all() request
];
$meetings->nextPage();
$meetings->previousPage();
$meetings->getNextRecords();
$meetings->hasMorePages();
$meetings->isFirstPage();
$meetings->totalRecords();
$meetings->currentPage();
$meetings->lastPage();
$meetings->nextPageNumber();
$meetings->previousPageNumber();
$meetings->firstPage(); // returns first page number which in this case will always be 1
$meetings->perPage(); // returns how many results we return per page
$meetings = Zoom::user()->find(...)->meetings;
$meetings = Zoom::user()->find(...)->settings(); // Returns HasOne relationship model
$meetings = Zoom::user()->find(...)->meetings(); // Returns HasMany relationship model
php
$users = Zoom::user()->where('status', 'active')->get();
// We can also pass
$users = Zoom::user()->where('status', '=', 'active')->get();
php
$users = Zoom::user()->where('status', 'active')->paginate(100)->get(); // will return 100 records
php
$users = Zoom::user()->where('status', 'active')->setPaginate(false)->setPerPage(300)->get(); // will return 300 records * 5 request (or amount set in config) = 1500 records
php
//To get a new instance
Zoom::setting();
// can only be retrieved through a user
$user->settings;
// To get sub relations then call the relationship of the setting
$user->settings->scheduleMeeting;
$user->settings->emailNotification;
$user->settings->feature;
$user->settings->inMeeting;
$user->settings->integration;
$user->settings->recording;
$user->settings->telephony;
$user->settings->tsp;
// To update a setting
$settings = $user->settings;
$settings->scheduleMeeting->host_video = false;
$settings->save();
// Available queries
$user()->settings()->where('login_type', '0')->get(); // Allowed values 0 => facebook, 1 => google, 99 => API, 100 => Zoom, 101 => SSO
// Below not yet setup
// $user()->settings()->where('option', 'meeting_authentication')->get(); // Allowed values meeting_authentication, recording_authentication.
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.