mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-06 12:47:44 +00:00
36 lines
1.2 KiB
Python
36 lines
1.2 KiB
Python
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
import dataclasses
|
|
import requests as requests_http
|
|
from typing import Optional
|
|
|
|
GET_TOKEN_SERVERS = [
|
|
"https://plex.tv/api/v2",
|
|
]
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class GetTokenRequest:
|
|
pin_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': False }})
|
|
r"""The PinID to retrieve an access token for"""
|
|
x_plex_client_identifier: Optional[str] = dataclasses.field(default=None, metadata={'header': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'simple', 'explode': False }})
|
|
r"""The unique identifier for the client application
|
|
This is used to track the client application and its usage
|
|
(UUID, serial number, or other number unique per device)
|
|
"""
|
|
|
|
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class GetTokenResponse:
|
|
content_type: str = dataclasses.field()
|
|
r"""HTTP response content type for this operation"""
|
|
status_code: int = dataclasses.field()
|
|
r"""HTTP response status code for this operation"""
|
|
raw_response: requests_http.Response = dataclasses.field()
|
|
r"""Raw HTTP response; suitable for custom response parsing"""
|
|
|
|
|