All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
createPresenter | POST /presenters | Create presenter. |
deletePresenterById | DELETE /presenters/{id} | Delete presenter by id |
getPresenterById | GET /presenters/{id} | Get presenter by id |
listPresenters | GET /presenters | Get all presenters. |
updatePresenterByID | PATCH /presenters/{id} | Update presenter by id |
\RadioManager\Model\PostSuccess createPresenter($data)
Create presenter.
Create presenter.
<?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\PresenterApi(
// 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\PresenterDataInput(); // \RadioManager\Model\PresenterDataInput | Data **(Required)**
try {
$result = $apiInstance->createPresenter($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PresenterApi->createPresenter: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \RadioManager\Model\PresenterDataInput | 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 deletePresenterById($id)
Delete presenter by id
Delete presenter 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\PresenterApi(
// 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 presenter
try {
$result = $apiInstance->deletePresenterById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PresenterApi->deletePresenterById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | id of presenter |
[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\PresenterResult getPresenterById($id, $_external_station_id)
Get presenter by id
Get presenter 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\PresenterApi(
// 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 Presenter
$_external_station_id = 789; // int | Query on a different (content providing) station *(Optional)*
try {
$result = $apiInstance->getPresenterById($id, $_external_station_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PresenterApi->getPresenterById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | id of Presenter | |
_external_station_id | int | Query on a different (content providing) station (Optional) | [optional] |
\RadioManager\Model\PresenterResult
[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\PresenterResults listPresenters($page, $program_id, $broadcast_id, $model_type_id, $limit, $order_by, $order_direction, $_external_station_id)
Get all presenters.
List all presenters.
<?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\PresenterApi(
// 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)*
$program_id = 789; // int | Search on Program ID *(Optional)* `(Relation)`
$broadcast_id = 789; // int | Search on Broadcast ID *(Optional)* `(Relation)`
$model_type_id = 789; // int | Search on ModelType ID (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->listPresenters($page, $program_id, $broadcast_id, $model_type_id, $limit, $order_by, $order_direction, $_external_station_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PresenterApi->listPresenters: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | Current page (Optional) | [optional] |
program_id | int | Search on Program ID (Optional) `(Relation)` | [optional] |
broadcast_id | int | Search on Broadcast ID (Optional) `(Relation)` | [optional] |
model_type_id | int | Search on ModelType ID (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\PresenterResults
[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 updatePresenterByID($id, $data)
Update presenter by id
Update presenter 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\PresenterApi(
// 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 Presenter
$data = new \RadioManager\Model\PresenterDataInput(); // \RadioManager\Model\PresenterDataInput | Data *(Optional)*
try {
$result = $apiInstance->updatePresenterByID($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PresenterApi->updatePresenterByID: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | id of Presenter | |
data | \RadioManager\Model\PresenterDataInput | 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]