uchup07/laravel-zoom

This is my package laravel-zoom

1.0.1 2024-11-07 02:18 UTC

This package is auto-updated.

Last update: 2024-11-07 02:20:31 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require uchup07/laravel-zoom

You can publish the config file with:

php artisan vendor:publish --tag="laravel-zoom-config"

This is the contents of the published config file:

return [
    'client_id' => env('ZOOM_CLIENT_ID'),
    'client_secret' => env('ZOOM_CLIENT_SECRET'),
    'account_id' => env('ZOOM_CLIENT_ACCOUNT_ID'),
    'credentials' => env('ZOOM_CLIENT_CREDENTIALS'),
    'api_url' => env('ZOOM_CLIENT_API_URL','https://api.zoom.us/v2/'),
];

Usage

Create Meeting

$data = [
            'topic' => 'Title Topic',
            'default_password'=>false,
            'start_time' => '2024-10-31T08:06:01Z',
            'duration' => 60,
            'timezone' => 'Asia/Jakarta',
            "type"=> 2,
            'settings' => [
                'host_video' => true,
                'participant_video' => true,
                'audio' => true,
                'approval_type' => 2,
                'waiting_room' => true,
                'join_before_host' => true
            ],
        ];

$meeting = \Uchup07\LaravelZoom\Facades\LaravelZoom::createMeeting('userid@mail.com', $data);

Update Meeting

$data = [
            'topic' => 'Title Topic',
            'default_password'=>false,
            'start_time' => '2024-10-31T08:06:01Z',
            'duration' => 60,
            'timezone' => 'Asia/Jakarta',
            "type"=> 2,
            'settings' => [
                'host_video' => true,
                'participant_video' => true,
                'audio' => true,
                'approval_type' => 2,
                'waiting_room' => true,
                'join_before_host' => true
            ],
        ];
        
$meeting = \Uchup07\LaravelZoom\Facades\LaravelZoom::updateMeeting(94064237172, $data);

Delete Meeting

$meetingId = 94064237172;
$meeting = \Uchup07\LaravelZoom\Facades\LaravelZoom::deleteMeeting($meetingId);

Get a Meeting

$meetingId = 94064237172;
$meeting = \Uchup07\LaravelZoom\Facades\LaravelZoom::getMeeting($meetingId);

Get All Meeting By User

$userId = 'user@email.com';
$meetings = \Uchup07\LaravelZoom\Facades\LaravelZoom::listMeetings($userId);

Testing

./vendor/bin/pest

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.