All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
createTag | POST /tags | Create tag. |
deleteTagById | DELETE /tags/{id} | Delete tag by id |
getTagById | GET /tags/{id} | Get tags by id |
listTags | GET /tags | Get a list of all the tags currently in your station. |
updateTagByID | PATCH /tags/{id} | Update tag by id |
\RadioManager\Model\PostSuccess createTag($data)
Create tag.
Create tag.
<?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\TagApi(
// 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\TagDataInput(); // \RadioManager\Model\TagDataInput | Data **(Required)**
try {
$result = $apiInstance->createTag($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->createTag: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \RadioManager\Model\TagDataInput | 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 deleteTagById($id)
Delete tag by id
Delete tag 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\TagApi(
// 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 Tag **(Required)**
try {
$result = $apiInstance->deleteTagById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->deleteTagById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Tag (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\TagResult getTagById($id, $_external_station_id)
Get tags by id
Get tags 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\TagApi(
// 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 Tag **(Required)**
$_external_station_id = 789; // int | Query on a different (content providing) station *(Optional)*
try {
$result = $apiInstance->getTagById($id, $_external_station_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->getTagById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Tag (Required) | |
_external_station_id | int | Query on a different (content providing) station (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]
\RadioManager\Model\TagResults listTags($page, $program_id, $item_id, $broadcast_id, $contact_id, $limit, $order_by, $order_direction, $_external_station_id)
Get a list of all the tags currently in your station.
Get a list of all the tags currently in your station. This feature supports pagination and will give a maximum results of 50 tags back.
<?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\TagApi(
// 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)`
$item_id = 789; // int | Search on Item ID *(Optional)* `(Relation)`
$broadcast_id = 789; // int | Search on Broadcast ID *(Optional)* `(Relation)`
$contact_id = 789; // int | Search on Contact ID *(Optional)* `(Relation)`
$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->listTags($page, $program_id, $item_id, $broadcast_id, $contact_id, $limit, $order_by, $order_direction, $_external_station_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->listTags: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | Current page (Optional) | [optional] |
program_id | int | Search on Program ID (Optional) `(Relation)` | [optional] |
item_id | int | Search on Item ID (Optional) `(Relation)` | [optional] |
broadcast_id | int | Search on Broadcast ID (Optional) `(Relation)` | [optional] |
contact_id | int | Search on Contact ID (Optional) `(Relation)` | [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\TagResults
[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 updateTagByID($id, $data)
Update tag by id
Update tag 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\TagApi(
// 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 Tag **(Required)**
$data = new \RadioManager\Model\TagDataInput(); // \RadioManager\Model\TagDataInput | Data *(Optional)*
try {
$result = $apiInstance->updateTagByID($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->updateTagByID: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Tag (Required) | |
data | \RadioManager\Model\TagDataInput | 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]