Tvο
- class asyncpow.apis.tv.Tv(base_url: URL, api_key: str, session: ClientSession, raw_response: bool)[source]ο
Initialize the Tv object with the base URL and API key.
- async async_get_tv(id: int, lang: str = 'en', raw_response: bool | None = None) dict | TvDetailsModel [source]ο
Retrieves TV details by ID asynchronously.
- Parameters:
id (int) β The ID of the TV show.
lang (str) β The language for the response. Default to βenβ.
raw_response (bool) β Flag to return Json. Defaults to None.
- Returns:
The raw response or TvDetailsModel object based on the raw_response flag.
- Return type:
dict | TvDetailsModel
Examples
tv_details = await async_get_tv(12345, lang=βenβ, raw_response=False)