Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 807 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 807 Bytes

TMDb

Elixir library for themoviedb.org's (tmdb) API.

This library is open source (MIT License) and welcomes contributions!

Installation

  1. Add movies to your list of dependencies in mix.exs:
  def deps do
    [{:tmdb, git: "https://github.com/seanabrahams/elixir-tmdb.git"}]
  end

You will need an account and API key from themoviedb.org.

  config :tmdb,
    api_key: "Your TMDb API key"

Usage

Tmdb.Search.movies("coherence") # Search for a specific movie
Tmdb.Search.tv("brain dead") # Search for a specific tv show

Tmdb.Movies.popular() # Movies that are currently popular
Tmdb.Movies.top() # Most highly rated movies regardless of release date