PHP code example of soheilrt / adobe-connect-client
1. Go to this page and download the library: Download soheilrt/adobe-connect-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
//these actions are doing the same action
//save given data with name classAttirbute in attributes property in class
$sco=SCO::instance();
$sco->setclassAttribute("value 1");
$sco->setClassAttribute("value 2");
$sco->ClassAttribute="value 3";
$sco->class_attribute="value 4";
//save data in class's `attributes` property with the name `classattribute`
$sco->classattribute="data 5";
$sco->Classatribute="data 6";
//these actions are doing the same action
//save given data with name classAttirbute in attributes property in class
$sco=SCO::instance()->setclassAttribute1("value 1")
->setClassAttribute2("value 2")->ClassAttribute3("value 3")
->setclass_attribute4("value 4");
//save data in class's `attributes` property with the name `classattribute`
$sco->classattribute="data 5";
$sco->Classaatribute="data 6";
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);
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);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.