use RadioManagerClient::Object::ItemApi;
All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
create_item | POST /items | Create an new item. |
current_item_post_structure | POST /items/current/structure | Post a current playing item, keep structure |
current_item_post_timing | POST /items/current/timing | Post a current playing item |
delete_item_by_id | DELETE /items/{id} | Delete item by ID. |
get_current_item | GET /items/current | Get current Item |
get_item_by_id | GET /items/{id} | Get extended item details by ID. |
list_items | GET /items | Get a list of all the items currently in your station. |
playlist_post_merge | POST /items/playlist/merge | Post a playlist, do not remove previously imported items |
playlist_post_structure | POST /items/playlist/structure | Post a playlist, keep current structure |
playlist_post_timing | POST /items/playlist/timing | Post a playlist |
stop_current_item | POST /items/stopcurrent | Stop an Item |
update_item_by_id | PATCH /items/{id} | Update extended item details by ID. |
PostSuccess create_item(data => $data)
Create an new item.
Create item.
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::ItemDataInput->new(); # ItemDataInput | Data *(Optional)*
eval {
my $result = $api_instance->create_item(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->create_item: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | ItemDataInput | 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]
Success current_item_post_structure(data => $data)
Post a current playing item, keep structure
Post a current playing item, keep structure
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::ImportItem->new(); # ImportItem | Data *(Optional)*
eval {
my $result = $api_instance->current_item_post_structure(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->current_item_post_structure: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | ImportItem | 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]
Success current_item_post_timing(data => $data)
Post a current playing item
Post a current playing item
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::ImportItem->new(); # ImportItem | Data *(Optional)*
eval {
my $result = $api_instance->current_item_post_timing(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->current_item_post_timing: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | ImportItem | 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]
Success delete_item_by_id(id => $id)
Delete item by ID.
Delete item by id.
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $id = 789; # int | ID of Item **(Required)**
eval {
my $result = $api_instance->delete_item_by_id(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->delete_item_by_id: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Item (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]
ItemResult get_current_item(lastplayed => $lastplayed)
Get current Item
Get current Item
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $lastplayed = 1; # boolean | Show last played item if there is no current item*(Optional)*
eval {
my $result = $api_instance->get_current_item(lastplayed => $lastplayed);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->get_current_item: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
lastplayed | boolean | Show last played item if there is no current item*(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]
ItemResult get_item_by_id(id => $id, _external_station_id => $_external_station_id)
Get extended item details by ID.
Read item by id.
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $id = 789; # int | ID of Item **(Required)**
my $_external_station_id = 789; # int | Query on a different (content providing) station *(Optional)*
eval {
my $result = $api_instance->get_item_by_id(id => $id, _external_station_id => $_external_station_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->get_item_by_id: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Item (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]
ItemResults list_items(page => $page, block_id => $block_id, broadcast_id => $broadcast_id, model_type_id => $model_type_id, tag_id => $tag_id, campaign_id => $campaign_id, contact_id => $contact_id, program_draft_id => $program_draft_id, user_draft_id => $user_draft_id, station_draft_id => $station_draft_id, program_id => $program_id, external_id => $external_id, start_min => $start_min, start_max => $start_max, duration_min => $duration_min, duration_max => $duration_max, status => $status, limit => $limit, order_by => $order_by, order_direction => $order_direction, _external_station_id => $_external_station_id)
Get a list of all the items currently in your station.
Get a list of all the items currently in your station. This feature supports pagination and will give a maximum results of 50 items back.
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $page = 789; # int | Current page *(Optional)*
my $block_id = 789; # int | Search on Block ID *(Optional)* `(Relation)`
my $broadcast_id = 789; # int | Search on Broadcast ID *(Optional)* `(Relation)`
my $model_type_id = 789; # int | Search on ModelType ID *(Optional)* `(Relation)`
my $tag_id = 789; # int | Search on Tag ID *(Optional)* `(Relation)`
my $campaign_id = 789; # int | Search on Campaign ID *(Optional)* `(Relation)`
my $contact_id = 789; # int | Search on Contact ID *(Optional)* `(Relation)`
my $program_draft_id = 789; # int | Search on Program Draft ID *(Optional)*
my $user_draft_id = 789; # int | Search on User Draft ID *(Optional)*
my $station_draft_id = 789; # int | Search on Station Draft ID *(Optional)*
my $program_id = 789; # int | Search on Program ID *(Optional)* `(Relation)`
my $external_id = 'external_id_example'; # string | Search on External ID *(Optional)*
my $start_min = DateTime->from_epoch(epoch => str2time('2013-10-20T19:20:30+01:00')); # DateTime | Minimum start date *(Optional)*
my $start_max = DateTime->from_epoch(epoch => str2time('2013-10-20T19:20:30+01:00')); # DateTime | Maximum start date *(Optional)*
my $duration_min = 56; # int | Minimum duration (seconds) *(Optional)*
my $duration_max = 56; # int | Maximum duration (seconds) *(Optional)*
my $status = 'status_example'; # string | Play Status of item *(Optional)*
my $limit = 789; # int | Results per page *(Optional)*
my $order_by = 'order_by_example'; # string | Field to order the results *(Optional)*
my $order_direction = 'order_direction_example'; # string | Direction of ordering *(Optional)*
my $_external_station_id = 789; # int | Query on a different (content providing) station *(Optional)*
eval {
my $result = $api_instance->list_items(page => $page, block_id => $block_id, broadcast_id => $broadcast_id, model_type_id => $model_type_id, tag_id => $tag_id, campaign_id => $campaign_id, contact_id => $contact_id, program_draft_id => $program_draft_id, user_draft_id => $user_draft_id, station_draft_id => $station_draft_id, program_id => $program_id, external_id => $external_id, start_min => $start_min, start_max => $start_max, duration_min => $duration_min, duration_max => $duration_max, status => $status, limit => $limit, order_by => $order_by, order_direction => $order_direction, _external_station_id => $_external_station_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->list_items: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
page | int | Current page (Optional) | [optional] |
block_id | int | Search on Block ID (Optional) `(Relation)` | [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] |
campaign_id | int | Search on Campaign ID (Optional) `(Relation)` | [optional] |
contact_id | int | Search on Contact ID (Optional) `(Relation)` | [optional] |
program_draft_id | int | Search on Program Draft ID (Optional) | [optional] |
user_draft_id | int | Search on User Draft ID (Optional) | [optional] |
station_draft_id | int | Search on Station Draft ID (Optional) | [optional] |
program_id | int | Search on Program ID (Optional) `(Relation)` | [optional] |
external_id | string | Search on External ID (Optional) | [optional] |
start_min | DateTime | Minimum start date (Optional) | [optional] |
start_max | DateTime | Maximum start date (Optional) | [optional] |
duration_min | int | Minimum duration (seconds) (Optional) | [optional] |
duration_max | int | Maximum duration (seconds) (Optional) | [optional] |
status | string | Play Status of item (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] |
[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]
InlineResponse202 playlist_post_merge(data => $data)
Post a playlist, do not remove previously imported items
Post a playlist, do not remove previously imported items
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::Data2->new(); # Data2 | Data *(Optional)*
eval {
my $result = $api_instance->playlist_post_merge(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->playlist_post_merge: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | Data2 | 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]
InlineResponse202 playlist_post_structure(data => $data)
Post a playlist, keep current structure
Post a playlist, keep current structure
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::Data1->new(); # Data1 | Data *(Optional)*
eval {
my $result = $api_instance->playlist_post_structure(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->playlist_post_structure: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | Data1 | 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]
InlineResponse202 playlist_post_timing(data => $data)
Post a playlist
Post a playlist
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::Data->new(); # Data | Data *(Optional)*
eval {
my $result = $api_instance->playlist_post_timing(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->playlist_post_timing: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | Data | 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]
Success stop_current_item(data => $data)
Stop an Item
Set a current playing or specific item on played
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $data = RadioManagerClient::Object::Data3->new(); # Data3 | Data *(Optional)*
eval {
my $result = $api_instance->stop_current_item(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->stop_current_item: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
data | Data3 | 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]
Success update_item_by_id(id => $id, data => $data)
Update extended item details by ID.
Update item by id.
use Data::Dumper;
use RadioManagerClient::ItemApi;
my $api_instance = RadioManagerClient::ItemApi->new(
# Configure API key authorization: API Key
api_key => {'api-key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api-key' => 'Bearer'},
);
my $id = 789; # int | ID of Item **(Required)**
my $data = RadioManagerClient::Object::ItemDataInput->new(); # ItemDataInput | Data *(Optional)*
eval {
my $result = $api_instance->update_item_by_id(id => $id, data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ItemApi->update_item_by_id: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of Item (Required) | |
data | ItemDataInput | 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]