brunogasparetto / adobe-connect-client
此包已被放弃,不再维护。未建议替代包。
Adobe Connect API PHP 客户端
3.1.1
2020-09-19 14:39 UTC
Requires
- php: ^7.0
- ext-curl: *
- ext-mbstring: *
- ext-simplexml: *
- lib-curl: *
Requires (Dev)
- phpunit/phpunit: ^7.0
README
目前我无法访问 Adobe Connect,因此无法继续维护此项目。
Adobe Connect API 客户端 v9.5.4
用于与 Adobe Connect Web Service 通信的 PHP 库。
实现了许多操作。其中一些是操作序列,如 RecordingPasscode。
安装
该包可在 Packagist 上找到。您可以使用 Composer 进行安装
$ composer require brunogasparetto/adobe-connect-client
使用方法
use AdobeConnectClient\Connection\Curl\Connection; use AdobeConnectClient\Client; $connection = new Connection('https://hostname.adobeconnect.com'); $client = new Client($connection); $commonInfo = $client->commonInfo();
您可以在某些操作中使用过滤器排序器。
use AdobeConnectClient\Connection\Curl\Connection; use AdobeConnectClient\Client; use AdobeConnectClient\Entities\SCO; use AdobeConnectClient\Filter; use AdobeConnectClient\Sorter; $connection = new Connection('https://hostname.adobeconnect.com'); $client = new Client($connection); $client->login('username', 'password'); $folderId = 123; $filter = Filter::instance() ->dateAfter('dateBegin', new DateTimeImmutable()) ->like('name', 'ClassRoom'); $sorter = Sorter::instance() ->asc('dateBegin'); $scos = $client->scoContents($folderId, $filter, $sorter);
实体、过滤器和排序器使用 Fluent 接口。
AdobeConnectClient\Connection\Curl\Connection 类接受一个选项数组来配置 CURL。
use AdobeConnectClient\Connection\Curl\Connection; use AdobeConnectClient\Client; // For tests with no SSL $connection = new Connection( 'https://hostname.adobeconnect.com', [ CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, ] ); $client = new Client($connection); $commonInfo = $client->commonInfo();
重要
所有客户端操作都是可抛出的。
use AdobeConnectClient\Connection\Curl\Connection; use AdobeConnectClient\Client; use AdobeConnectClient\Exceptions\NoAccessException; $connection = new Connection('https://hostname.adobeconnect.com'); $client = new Client($connection); // Throws NoAccessException if not logged in $client->scoInfo(123);