byoungdale / elixir-tmdb

Elixir library for themoviedb.org (tmdb)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/byoungdale/elixir-tmdb.git"}]
  end

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

config :tmdb,
  api_key: System.fetch_env!("TMDB_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

About

Elixir library for themoviedb.org (tmdb)

License:MIT License


Languages

Language:Elixir 100.0%