Skip to content

Niyiojeyinka/Zoom-PHP-Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Zoom-PHP-Toolkit

Contents



Zoom PHP API tool kit is PHP library that makes it easy to work with Zoom API v2

it makes it easy to manage zoom functions like User Meeting Webinar and more
Before you continue please readup on official zoom API documentation at https://marketplace.zoom.us/docs/api-reference/introduction

Requirements

  • PHP 5.6+
  • Zoom API key
  • Zoom Secret Key
  • Zoom user account email

To get your zoom keys register as a developer and create a jwt app on Zoom marketplace


  • Clone or Download the repo
  • Move the Zoom folder to your project
  • import the library
  • require_once './Zoom/Index.php';
  • go to the zoom/config.php directory
  • Change the value of email,secret key and api key

Documentation

Create a Meeting

To ceate a meeting, check the example below

<?php
//Use case
use Zoom\Meeting;

$meeting = new Meeting();
//create a data meeting
$data = [
  'topic' => 'A new zoom meeting',
  'agenda' => 'our meeting desc',
  ...,
  'settings' => [
    'host_video' => false,
    'participant_video' => true,
    'join_before_host' => true,
    'audio' => true,
    'approval_type' => 2,
    'waiting_room' => false,
  ],
];
$meeting = $meeting->create($data);

?>
/*
this apply to all methods from this class

if successfull it returns response array
and if not it return false
and error details available on $meeting->zoomError variable


*/

Please check the official docs for expected request data structure and response

Update a Meeting

To edit a meeting, check the example below

<?php
//Use case
use Zoom\Meeting;

$meeting = new Meeting();
$data = [
  'topic' => 'A new zoom meeting',
  'agenda' => 'our meeting desc',
  ...,
  'settings' => [
    'host_video' => false,
    'participant_video' => true,
    'join_before_host' => true,
    'audio' => true,
    'approval_type' => 2,
    'waiting_room' => false,
  ],
];
$meeting_id ="meeting id";
$meeting = $meeting->update($data,$meeting_id);

?>

Please check the official docs for expected request data structure and response

Delete a Meeting

To delete a meeting, check the example below

<?php
//Use case
use Zoom\Meeting;

$meeting = new Meeting();

$meeting_id = 'meeting id';
$meeting = $meeting->delete($meeting_id);

?>

Please check the official docs for expected request data structure and response

End a Meeting

To end a meeting, check the example below

<?php
//Use case
use Zoom\Meeting;

$meeting = new Meeting();

$meeting_id = 'meeting id';
$meeting = $meeting->end($meeting_id);

?>

Please check the official docs for expected response structure

List Meetings

List all the meetings that were scheduled for a user (meeting host).

<?php
//Use case
use Zoom\Meeting;

$meeting = new Meeting();

$meeting = $meeting->list;

?>

Please check the official docs for expected response structure

Client Inspired by ZoomAPIWrapper

Work In Progress