-
Notifications
You must be signed in to change notification settings - Fork 3
OcBaseApi
FarbodZamani edited this page Mar 25, 2022
·
1 revision
This class contains all REST API call to the /api
, /api/info
and /api/version
endpoints.
It is accessible under OpencastApi\Rest
namespace.
- In
OpencastApi\OpenCast
as its property with OpenCast properties naming convention:
use OpencastApi\OpenCast;
$opencastApi = new OpenCast($config);
$ccBaseApi = $opencastApi->baseApi;
...
- Direct instantiation:
use OpencastApi\Rest\OcRestClient;
use OpencastApi\Rest\OcBaseApi;
$ocRestClient = new OcRestClient($config);
$ccBaseApi = new OcBaseApi($ocRestClient);
...
Consumable functions are listed below:
Returns key characteristics of the API such as the server name and the default version. More Detail
- Returns an array:
['code' => 200, 'body' => '{The api information is returned.}']
Returns information on the logged in user. More Detail
- Returns an array:
['code' => 200, 'body' => '{The api user information is returned.}']
Returns current user's roles. More Detail
- Returns an array:
['code' => 200, 'body' => '{The set of roles is returned. }']
Returns the current organization. More Detail
- Returns an array:
['code' => 200, 'body' => '{TThe organization details are returned.}']
Returns the current organization's properties. More Detail
- Returns an array:
['code' => 200, 'body' => '{The organization properties are returned.}']
Returns the engage ui url property. More Detail
- Returns an array:
['code' => 200, 'body' => '{The engage ui url is returned.}']
Returns a list of available version as well as the default version. More Detail
- Returns an array:
['code' => 200, 'body' => '{The version list is returned}']
Returns the default version. More Detail
- Returns an array:
['code' => 200, 'body' => '{The default version is returned}']