john_zuk/php-click-meeting-api

Clickmeeting API 客户端

2.0.0 2021-01-21 21:49 UTC

This package is auto-updated.

Last update: 2024-09-22 06:07:39 UTC


README

要求

  • PHP >= 7.1
  • Guzzle 库,
  • (可选) PHPUnit 运行测试。

安装

通过 composer

composer require john_zuk/php-click-meeting-api guzzlehttp/guzzle:^7.2 http-interop/http-factory-guzzle:^1.0

通用 API 使用

<?php

// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

$client = new \ClickMeeting\Client();
$client->authenticate('YourAPIKeyHere');

$client->conferences()->add([
    'name' => 'test',
    'room_type' => 'webinar',
    'permanent_room' => 0,
    'access_type' => 3,
    'registration' => [
        'enabled' => true,
    ],
]);

$client->conferences()->edit(321321, [
    'name' => 'test-edit',
]);

$client->conferences()->delete(321321);