Skip to content

Reviews

Bases: TMDB

Reviews functionality.

See: https://developers.themoviedb.org/3/reviews

Source code in src/tmdb_client_py/movies.py
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
class Reviews(TMDB):
    """
    Reviews functionality.

    See: https://developers.themoviedb.org/3/reviews
    """

    BASE_PATH = "review"
    URLS = {
        "info": "/{id}",
    }

    def __init__(self, id):
        super().__init__()
        self.id = id

    def info(self, **kwargs):
        """
        Get the review details by id.

        Args:
            None

        Returns:
            A dict representation of the JSON returned from the API.
        """
        path = self._get_id_path("info")

        response = self._GET(path, kwargs)
        self._set_attrs_to_values(response)
        return response

info(**kwargs)

Get the review details by id.

Returns:

Type Description

A dict representation of the JSON returned from the API.

Source code in src/tmdb_client_py/movies.py
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
def info(self, **kwargs):
    """
    Get the review details by id.

    Args:
        None

    Returns:
        A dict representation of the JSON returned from the API.
    """
    path = self._get_id_path("info")

    response = self._GET(path, kwargs)
    self._set_attrs_to_values(response)
    return response