Skip to content

Latest commit

 

History

History
93 lines (61 loc) · 2.26 KB

user-views.md

File metadata and controls

93 lines (61 loc) · 2.26 KB

User Views

user_views_controller = client.user_views

Class Name

UserViewsController

Methods

Get Grouping Options

Get user view grouping options.

def get_grouping_options(self,
                        user_id)

Parameters

Parameter Type Tags Description
user_id uuid|string Template, Required User id.

Response Type

List of SpecialViewOptionDto

Example Usage

user_id = '000013ec-0000-0000-0000-000000000000'

result = user_views_controller.get_grouping_options(user_id)

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException
404 User not found. ProblemDetailsException

Get User Views

Get user views.

def get_user_views(self,
                  user_id,
                  include_external_content=None,
                  preset_views=None,
                  include_hidden=False)

Parameters

Parameter Type Tags Description
user_id uuid|string Template, Required User id.
include_external_content bool Query, Optional Whether or not to include external views such as channels or live tv.
preset_views List of string Query, Optional Preset views.
include_hidden bool Query, Optional Whether or not to include hidden content.
Default: False

Response Type

BaseItemDtoQueryResult

Example Usage

user_id = '000013ec-0000-0000-0000-000000000000'
include_hidden = False

result = user_views_controller.get_user_views(user_id, None, None, include_hidden)

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException