Package to manage the Zoom API in Laravel
You can install the package via composer:
composer require minawilliam/zoom-api
The service provider should automatically register for Laravel > 5.4.
For Laravel < 5.5, open config/app.php and, within the providers array, append:
MinaWilliam\Zoom\Providers\ZoomServiceProvider::class
Publish the configuration file
php artisan vendor:publish --provider="MinaWilliam\Zoom\Providers\ZoomServiceProvider"
This will create a zoom/config.php within your config directory, where you add value for api_key and api_secret.
To get a list of user meetings or webinars
$zoom = new \MinaWilliam\Zoom\Zoom();
$meetings = $zoom->meetings->list('zoomUserId');
$webinars = $zoom->webinars->list('zoomUserId');
To get a list of all users
$zoom = new \MinaWilliam\Zoom\Zoom();
$users = $zoom->users->list();
We can a user by passing an array of user details
$user = $zoom->users->create([
'name' => 'Test Name',
'first_name' => 'First Name',
'last_name' => 'Last Name',
'email' => '[email protected]',
'password' => 'secret',
'type' => 1
]);
$webinar = $zoom->webinars->create('zoomUserId', [
'topic' => 'string',
'agenda' => 'string',
'type' => 'integer', // 5 - Webinar, 6 - Recurring webinar with no fixed time, 9 - Recurring webinar with a fixed time.
'start_time' => $start_at->toDateTimeLocalString(), // Webinar start time in GMT/UTC.
'timezone' => $start_at->tzName, // webinar timezone
'duration' => 'integer' // duration in minutes,
'password' => 'string' // zoom webinar password,
]);
We can a user by passing an array of user details
$webinar = $zoom->webinars->update('webinarId', [
'topic' => 'string',
'agenda' => 'string',
]);
//end webinar/meeting by updating its status.
$zoom->webinars->updateStatus('webinarId', 'end')
$zoom->meetings->updateStatus('meetingId', 'end')
We cover the main resources
users
methods (list, retrieve, create, update, updatePassword, remove, assistantsList, addAssistant, deleteAssistants, deleteAssistant, deletesSchedulers, deletesScheduler)
meetings
methods (list, retrieve, create, update, updateStatus, remove, records)
mebinars
methods (list, retrieve, create, update, updateStatus, remove, records)
We aim to add additional resources/sub-resources over time
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
- Mina William
- forked from: https://github.com/Fessnik/zoom
The MIT License (MIT). Please see License File for more information.