Skip to content

Weble/Zoom

Repository files navigation

WARNING: STILL IN DEVELOPMENT. DO NOT USE IN PRODUCTION.

ZOOM PHP SDK

The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the Zoom App Marketplace. To learn how to get your credentials and create private/public applications, read our Authorization Guide. All endpoints are available via https and are located at api.zoom.us/v2/. For instance you can list all users on an account via https://api.zoom.us/v2/users/.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 2.0.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen For more information, please visit https://developer.zoom.us/

Requirements

PHP 7.2 and later

Installation & Usage

$apiKey = "[YOUR_API_KEY]";
$apiSecret = "[YOUR_API_SECRET]";

$payload = array(
    "iss" => $apiKey,
    // How much time the jtw token should last
    "exp" => (int) (new DateTime())->add(new DateInterval('PT60M'))->format('U'),
);

// This is the JWT token. It will last for the time you expressed above.
// We suggest you cache it for the same duration, to avoid generating a new one each time
$jwt = \Firebase\JWT\JWT::encode($payload, $apiSecret);

$this->config = \Weble\Zoom\Configuration::getDefaultConfiguration()->setAccessToken($jwt);
$apiInstance = new \Weble\Zoom\Api\UsersApi(
    new \GuzzleHttp\Client(),
    $config
);

$users = $apiInstance->users();
$this->assertGreaterThan(0, $users->getTotalRecords());

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "require": {
    "weble/zoom": "1.0.0"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

License

MIT

Releases

No releases published

Packages

No packages published

Languages