Giter Club home page Giter Club logo

zoom-php's Introduction

ZOOM-PHP

ZOOM-PHP is a simple Zoom API library for using oAuth Zoom API. Which handles refresh token logic in itself.

Installation

Install easily via composer package

composer require aghilanbaskar/zoom-library

Usage

initialize the library with the required credentials

<?php
require_once __DIR__ . '/../vendor/autoload.php';

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

OAuth URL

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

Once verification is successfull. It will redirect you to the specified callback URL with CODE in GET parameter. Pass the code to the Library

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

Available methods

List Meetings:

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

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

Create Meetings:

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

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

Delete Meetings:

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

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

Add Meeting Registrant:

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

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

Zoom Documentation:

Zoom Documentation Pass required parameter as it is in Documentation

output format

All response body is JSON decode to output as an array

All the method call will return an associative array with status, data, message

status - true

The API call is a success and its response body will be available in data

status - false

The API call is failed and its reason for failure will be available in message

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

zoom-php's People

Contributors

aghilanbaskar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

zoom-php's Issues

guzzlehttp/guzzle 7.2.* should be updated 7.5.0

aghilanbaskar/zoom-library 1.0.0 requires guzzlehttp/guzzle 7.2.* -> found guzzlehttp/guzzle[7.2.0] but the package is fixed to 7.5.0
We are getting issue when installing aghilanbaskar/zoom-library 1.0.0 from composer.

Please make it compatible with the latest version of guzzlehttp/guzzle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.