Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

brunogasparetto/AdobeConnectClient

Repository files navigation

Build Status

Client for Adobe Connect API v9.5.4

PHP library to comunicate with the Adobe Connect Web Service.

There are many actions implemented. Some of them are a sequence of actions, like the RecordingPasscode.

Installation

The package is available on Packagist. You can install it using Composer

$ composer require brunogasparetto/adobe-connect-client

Usage

use AdobeConnectClient\Connection\Curl\Connection;
use AdobeConnectClient\Client;

$connection = new Connection('https://hostname.adobeconnect.com');
$client =  new Client($connection);
$commonInfo = $client->commonInfo();

You can use filters and sorters in some actions.

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);

The entities, filters and sorter use Fluent Interface.

The AdobeConnectClient\Connection\Curl\Connection class accept an array of options to configure the 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();

IMPORTANT

All Client actions are throwable.

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);