dansleboby/zoomphp-sdk

Zoom 会议 API 允许开发者访问 Zoom 的信息。您可以使用此 API 在 [Zoom 应用商店](http://marketplace.zoom.us) 上构建私有服务或公共应用程序。要了解如何获取您的凭证并创建私有/公共应用程序,请阅读我们的 [JWT](/guides/auth/jwt) 和 [OAuth](/guides/auth/oauth) 文档。

v2.0.3 2022-07-27 20:53 UTC

This package is auto-updated.

Last update: 2024-09-28 01:48:26 UTC


README

Zoom 会议 API 允许开发者访问 Zoom 的信息。您可以使用此 API 在 Zoom 应用商店 上构建私有服务或公共应用程序。要了解如何获取您的凭证并创建私有/公共应用程序,请阅读我们的 JWTOAuth 文档。

所有端点均通过 https 提供,并位于 api.zoom.us/v2/。例如,要列出帐户的所有用户,请使用 https://api.zoom.us/v2/users/ 端点。

更多信息,请访问 https://developer.zoom.us/

安装与使用

要求

PHP 7.4 及更高版本。也应与 PHP 8.0 兼容。

Composer

要通过 Composer 安装绑定,请将以下内容添加到 composer.json

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

入门

请按照 安装程序 进行操作,然后运行以下命令

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



// Configure OAuth2 access token for authorization: OAuth
$config = Zoom\Api\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Zoom\Api\Api\AccountsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$account_id = q6gBJVO5TzexKYTb_I2rpg; // string | The account's ID. For the Master account, pass the `me` value for this parameter.

try {
    $result = $apiInstance->accountManagedDomain($account_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsApi->accountManagedDomain: ', $e->getMessage(), PHP_EOL;
}

API 端点

所有 URI 都相对于 https://api.zoom.us/v2

模型

授权

Bearer

  • 类型: API密钥
  • API密钥参数名称: 授权
  • 位置: HTTP头部

Client_Credentials

  • 类型: OAuth
  • 流程: application
  • 授权URL: ``
  • 作用域: N/A

OAuth

  • 类型: OAuth
  • 流程: accessCode
  • 授权URL: https://zoom.us/oauth/authorize
  • 作用域: N/A

测试

要运行测试,使用

composer install
vendor/bin/phpunit

作者

关于此包

此PHP包是由OpenAPI Generator项目自动生成的

  • API版本: 2.0.0
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen