All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
convertLiveToVod | POST /media-sources/{source_id}/live2vod | |
createLive | POST /media-sources/{source_id}/live | |
getLiveStreams | GET /media-files/{media_file_id}/streams | |
getMediaFile | GET /media-files/{media_file_id} | |
getMediaSourceFiles | GET /media-sources/{source_id}/files | |
postMediaSourceFiles | POST /media-sources/{source_id}/files |
convertLiveToVod($source_id, $body)
Convert Live to VOD
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\MediaFilesApi();
$source_id = 789; // int | Media source ID to fetch
$body = new \Kinow\Client\Model\ConvertMediaLiveRequest(); // \Kinow\Client\Model\ConvertMediaLiveRequest | Convert MediaLive object
try {
$api_instance->convertLiveToVod($source_id, $body);
} catch (Exception $e) {
echo 'Exception when calling MediaFilesApi->convertLiveToVod: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
source_id | int | Media source ID to fetch | |
body | \Kinow\Client\Model\ConvertMediaLiveRequest | Convert MediaLive object |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
createLive($source_id, $body)
Create a live
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\MediaFilesApi();
$source_id = 789; // int | Media source ID to fetch
$body = new \Kinow\Client\Model\CreateMediaLiveRequest(); // \Kinow\Client\Model\CreateMediaLiveRequest | Create MediaFile object
try {
$api_instance->createLive($source_id, $body);
} catch (Exception $e) {
echo 'Exception when calling MediaFilesApi->createLive: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
source_id | int | Media source ID to fetch | |
body | \Kinow\Client\Model\CreateMediaLiveRequest | Create MediaFile object |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\MediaFileStreamListResponse getLiveStreams($media_file_id)
Get live streams
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\MediaFilesApi();
$media_file_id = 789; // int | Media file ID to fetch
try {
$result = $api_instance->getLiveStreams($media_file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MediaFilesApi->getLiveStreams: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
media_file_id | int | Media file ID to fetch |
\Kinow\Client\Model\MediaFileStreamListResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\MediaFileResponse getMediaFile($media_file_id)
Get Media file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\MediaFilesApi();
$media_file_id = 789; // int | Media file ID to fetch
try {
$result = $api_instance->getMediaFile($media_file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MediaFilesApi->getMediaFile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
media_file_id | int | Media file ID to fetch |
\Kinow\Client\Model\MediaFileResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\MediaFileListResponse getMediaSourceFiles($source_id, $page, $per_page, $filters, $sort_by, $sort_direction)
Get media source files
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\MediaFilesApi();
$source_id = 789; // int | Media source ID to fetch
$page = 789; // int |
$per_page = 789; // int |
$filters = "filters_example"; // string | ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { \"name\": { \"value\": \"string\", \"operator\": \"contains\" }, \"date_add\": { \"value\": \"string\", \"operator\": \"lt\" } } ``` Operator can be: strict, contains, between, in, gt (greater than), lt (lower than).
$sort_by = "sort_by_example"; // string | Sort by this attribute (id by default)
$sort_direction = "sort_direction_example"; // string | Sorting direction (asc by default)
try {
$result = $api_instance->getMediaSourceFiles($source_id, $page, $per_page, $filters, $sort_by, $sort_direction);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MediaFilesApi->getMediaSourceFiles: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
source_id | int | Media source ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] | |
filters | string | ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { "name": { "value": "string", "operator": "contains" }, "date_add": { "value": "string", "operator": "lt" } } ``` Operator can be: strict, contains, between, in, gt (greater than), lt (lower than). | [optional] |
sort_by | string | Sort by this attribute (id by default) | [optional] |
sort_direction | string | Sorting direction (asc by default) | [optional] |
\Kinow\Client\Model\MediaFileListResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\MediaFileResponse postMediaSourceFiles($source_id, $body)
Post media file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\MediaFilesApi();
$source_id = 789; // int | Media source ID to fetch
$body = new \Kinow\Client\Model\CreateMediaFileRequest(); // \Kinow\Client\Model\CreateMediaFileRequest | Create MediaFile object
try {
$result = $api_instance->postMediaSourceFiles($source_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MediaFilesApi->postMediaSourceFiles: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
source_id | int | Media source ID to fetch | |
body | \Kinow\Client\Model\CreateMediaFileRequest | Create MediaFile object |
\Kinow\Client\Model\MediaFileResponse
- Content-Type: Not defined
- Accept: Not defined