PHP code example of nexxomnia / apiclient-php
1. Go to this page and download the library: Download nexxomnia/apiclient-php 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/ */
nexxomnia / apiclient-php example snippets
use nexxomnia\apiclient;
use nexxomnia\apicalls\mediacall;
use nexxomnia\enums\streamtypes;
$apiclient = new apiclient();
$apiclient->configure(999,"API-SECRET","SESSION-ID");
$apicall = new mediacall(streamtypes::VIDEO);
$apicall->latest();
$result=$apiclient->call($apicall);
echo $result->getResultIterator(TRUE)->current()->getGeneral()->getID(); // outputs the ID of the first Element
$ composer