channels_controller = client.channels
ChannelsController
Get all channel features.
def get_all_channel_features(self)
List of ChannelFeatures
result = channels_controller.get_all_channel_features()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Get channel features.
def get_channel_features(self,
channel_id)
Parameter |
Type |
Tags |
Description |
channel_id |
uuid|string |
Template, Required |
Channel id. |
ChannelFeatures
channel_id = '00001a8a-0000-0000-0000-000000000000'
result = channels_controller.get_channel_features(channel_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Get channel items.
def get_channel_items(self,
channel_id,
folder_id=None,
user_id=None,
start_index=None,
limit=None,
sort_order=None,
filters=None,
sort_by=None,
fields=None)
Parameter |
Type |
Tags |
Description |
channel_id |
uuid|string |
Template, Required |
Channel Id. |
folder_id |
uuid|string |
Query, Optional |
Optional. Folder Id. |
user_id |
uuid|string |
Query, Optional |
Optional. User Id. |
start_index |
int |
Query, Optional |
Optional. The record index to start at. All items with a lower index will be dropped from the results. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
sort_order |
List of SortOrderEnum |
Query, Optional |
Optional. Sort Order - Ascending,Descending. |
filters |
List of ItemFilterEnum |
Query, Optional |
Optional. Specify additional filters to apply. |
sort_by |
List of string |
Query, Optional |
Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. |
BaseItemDtoQueryResult
channel_id = '00001a8a-0000-0000-0000-000000000000'
result = channels_controller.get_channel_items(channel_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets available channels.
def get_channels(self,
user_id=None,
start_index=None,
limit=None,
supports_latest_items=None,
supports_media_deletion=None,
is_favorite=None)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Query, Optional |
User Id to filter by. Use System.Guid.Empty to not filter by user. |
start_index |
int |
Query, Optional |
Optional. The record index to start at. All items with a lower index will be dropped from the results. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
supports_latest_items |
bool |
Query, Optional |
Optional. Filter by channels that support getting latest items. |
supports_media_deletion |
bool |
Query, Optional |
Optional. Filter by channels that support media deletion. |
is_favorite |
bool |
Query, Optional |
Optional. Filter by channels that are favorite. |
BaseItemDtoQueryResult
result = channels_controller.get_channels()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Gets latest channel items.
def get_latest_channel_items(self,
user_id=None,
start_index=None,
limit=None,
filters=None,
fields=None,
channel_ids=None)
Parameter |
Type |
Tags |
Description |
user_id |
uuid|string |
Query, Optional |
Optional. User Id. |
start_index |
int |
Query, Optional |
Optional. The record index to start at. All items with a lower index will be dropped from the results. |
limit |
int |
Query, Optional |
Optional. The maximum number of records to return. |
filters |
List of ItemFilterEnum |
Query, Optional |
Optional. Specify additional filters to apply. |
fields |
List of ItemFieldsEnum |
Query, Optional |
Optional. Specify additional fields of information to return in the output. |
channel_ids |
List of uuid|string |
Query, Optional |
Optional. Specify one or more channel id's, comma delimited. |
BaseItemDtoQueryResult
result = channels_controller.get_latest_channel_items()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |