TmdbElixir.Movies (tmdb_elixir v1.1.0)

Used for making calls related to movies.

Summary

Functions

Get the top level details of a movie by ID.

Get a list of movies ordered by popularity.

Functions

find(id, params \\ %{})

Get the top level details of a movie by ID.

Returns a map with data for the corresponding movie.

Accepts query params listed in the TMDb Docs in the form of a map.

Examples

iex> TmdbElixir.Movies.find(11836)
%{
  "title" => "The SpongeBob SquarePants Movie",
  ...
}

popular(params \\ %{})

(since 0.1.0)

Get a list of movies ordered by popularity.

Returns a map with a paginated list of popular movies.

Accepts query params listed in the TMDb Docs in the form of a map.

Examples

iex> TmdbElixir.Movies.popular()
%{
  "page" => 1,
  "results" => [
    ...
  ],,
  "total_pages" => 10,
  "total_results" => 250
}