All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
createProgram | POST /programs | Create program. |
deleteProgramById | DELETE /programs/{id} | Delete program by id |
getProgramById | GET /programs/{id} | Get program by id |
listPrograms | GET /programs | Get all programs. |
updateProgramByID | PATCH /programs/{id} | Update program by id |
\RadioManager\Model\PostSuccess createProgram($data)
Create program.
Create program.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: API Key
$config = RadioManager\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = RadioManager\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$apiInstance = new RadioManager\Api\ProgramApi(
// 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
);
$data = new \RadioManager\Model\ProgramDataInput(); // \RadioManager\Model\ProgramDataInput | Data **(Required)**
try {
$result = $apiInstance->createProgram($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProgramApi->createProgram: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \RadioManager\Model\ProgramDataInput | Data (Required) |
\RadioManager\Model\PostSuccess
[API Key](../../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\RadioManager\Model\Success deleteProgramById($id)
Delete program by id
Delete program by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: API Key
$config = RadioManager\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = RadioManager\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$apiInstance = new RadioManager\Api\ProgramApi(
// 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
);
$id = 789; // int | ID of program **(Required)**
try {
$result = $apiInstance->deleteProgramById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProgramApi->deleteProgramById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of program (Required) |
[API Key](../../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\RadioManager\Model\ProgramResult getProgramById($id, $_external_station_id)
Get program by id
Get program by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: API Key
$config = RadioManager\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = RadioManager\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$apiInstance = new RadioManager\Api\ProgramApi(
// 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
);
$id = 789; // int | ID of Program **(Required)**
$_external_station_id = 789; // int | Query on a different (content providing) station *(Optional)*
try {
$result = $apiInstance->getProgramById($id, $_external_station_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProgramApi->getProgramById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Program (Required) | |
_external_station_id | int | Query on a different (content providing) station (Optional) | [optional] |
\RadioManager\Model\ProgramResult
[API Key](../../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\RadioManager\Model\ProgramResults listPrograms($page, $broadcast_id, $model_type_id, $tag_id, $presenter_id, $genre_id, $block_id, $item_id, $disabled, $limit, $order_by, $order_direction, $_external_station_id)
Get all programs.
List all programs.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: API Key
$config = RadioManager\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = RadioManager\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$apiInstance = new RadioManager\Api\ProgramApi(
// 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
);
$page = 789; // int | Current page *(Optional)*
$broadcast_id = 789; // int | Search on Broadcast ID *(Optional)* `(Relation)`
$model_type_id = 789; // int | Search on ModelType ID *(Optional)* `(Relation)`
$tag_id = 789; // int | Search on Tag ID *(Optional)* `(Relation)`
$presenter_id = 789; // int | Search on Presenter ID *(Optional)* `(Relation)`
$genre_id = 789; // int | Search on Genre ID *(Optional)*
$block_id = 789; // int | Search on Block ID *(Optional)* `(Relation)`
$item_id = 789; // int | Search on Item ID *(Optional)* `(Relation)`
$disabled = 56; // int | Search on Disabled status *(Optional)*
$limit = 789; // int | Results per page *(Optional)*
$order_by = "order_by_example"; // string | Field to order the results *(Optional)*
$order_direction = "order_direction_example"; // string | Direction of ordering *(Optional)*
$_external_station_id = 789; // int | Query on a different (content providing) station *(Optional)*
try {
$result = $apiInstance->listPrograms($page, $broadcast_id, $model_type_id, $tag_id, $presenter_id, $genre_id, $block_id, $item_id, $disabled, $limit, $order_by, $order_direction, $_external_station_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProgramApi->listPrograms: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | Current page (Optional) | [optional] |
broadcast_id | int | Search on Broadcast ID (Optional) `(Relation)` | [optional] |
model_type_id | int | Search on ModelType ID (Optional) `(Relation)` | [optional] |
tag_id | int | Search on Tag ID (Optional) `(Relation)` | [optional] |
presenter_id | int | Search on Presenter ID (Optional) `(Relation)` | [optional] |
genre_id | int | Search on Genre ID (Optional) | [optional] |
block_id | int | Search on Block ID (Optional) `(Relation)` | [optional] |
item_id | int | Search on Item ID (Optional) `(Relation)` | [optional] |
disabled | int | Search on Disabled status (Optional) | [optional] |
limit | int | Results per page (Optional) | [optional] |
order_by | string | Field to order the results (Optional) | [optional] |
order_direction | string | Direction of ordering (Optional) | [optional] |
_external_station_id | int | Query on a different (content providing) station (Optional) | [optional] |
\RadioManager\Model\ProgramResults
[API Key](../../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\RadioManager\Model\Success updateProgramByID($id, $data)
Update program by id
Update program by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: API Key
$config = RadioManager\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = RadioManager\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$apiInstance = new RadioManager\Api\ProgramApi(
// 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
);
$id = 789; // int | ID of Program **(Required)**
$data = new \RadioManager\Model\ProgramDataInput(); // \RadioManager\Model\ProgramDataInput | Data *(Optional)*
try {
$result = $apiInstance->updateProgramByID($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProgramApi->updateProgramByID: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Program (Required) | |
data | \RadioManager\Model\ProgramDataInput | Data (Optional) | [optional] |
[API Key](../../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]