Skip to content

Latest commit

 

History

History
95 lines (66 loc) · 2.51 KB

README.md

File metadata and controls

95 lines (66 loc) · 2.51 KB

Build Status

Currently I no longer have access to Adobe Connect, so I am unable to continue to maintain this project.

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