-
Notifications
You must be signed in to change notification settings - Fork 3
API Endpoints
FarbodZamani edited this page Mar 25, 2022
·
18 revisions
This page contains all class definitions related to API Endpoint knows as /api/*.
All classes under this endpoint are named using class naming convention, it means that the class name must consist of Oc[endpoit name]Api with Api at the end to define its category!
namespace OpencastApi\Rest;
- In
OpencastApi\OpenCastas its property:
use OpencastApi\OpenCast;
$opencastApi = new OpenCast($config);
$ocEventsApi = $opencastApi->eventsApi;
...- Direct instantiation:
use OpencastApi\Rest\OcRestClient;
use OpencastApi\Rest\OcEventsApi;
$ocRestClient = new OcRestClient($config);
$ocEventsApi = new OcEventsApi($ocRestClient);
...