Movieο
- class asyncpow.apis.movie.Movie(base_url: URL, api_key: str, session: ClientSession, raw_response: bool)[source]ο
Initialize the Movie object with the base URL and API key.
- async async_get_movie(id: int, lang: str = 'en', raw_response: bool | None = None) dict | MovieDetailsModel [source]ο
Retrieves movie details by ID asynchronously.
- Parameters:
id (int) β The ID of the movie.
lang (str) β The language for the response (default is βenβ).
raw_response (bool, optional) β return raw json. Defaults to None.
- Returns:
The raw response or MovieDetailsModel object based on the raw_response flag.
- Return type:
dict | MovieDetailsModel