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