All URIs are relative to https://api-sbx.42videobricks.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getDataVideoUsage() | GET /data/videos/usage | List Video Usage KPIs |
getDataVideoUsage($limit, $offset, $interval, $start_date, $end_date): \Api42Vb\Client\Model\DataVideoUsageList
List Video Usage KPIs
Return the usage of the platform ressources. By default, it returns monthly usage but unit (dayly|week|month) can be defined. For current period, usage is calculated until current time. Start and end dates can be also optionaly defined to filter results.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Api42Vb\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Api42Vb\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Api42Vb\Client\Api\DataApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$limit = 56; // int | Number of elements to return (default=10)
$offset = 56; // int | offset for pagination
$interval = {{interval}}; // string | Period unit (day|week|month)
$start_date = {{starDate}}; // string | Start date for the period
$end_date = {{endDate}}; // string | End date for the period
try {
$result = $apiInstance->getDataVideoUsage($limit, $offset, $interval, $start_date, $end_date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataApi->getDataVideoUsage: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int | Number of elements to return (default=10) | [optional] |
offset | int | offset for pagination | [optional] |
interval | string | Period unit (day | week |
start_date | string | Start date for the period | [optional] |
end_date | string | End date for the period | [optional] |
\Api42Vb\Client\Model\DataVideoUsageList
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]