packages feed

themoviedb-0.1.0.1 / Network / API / TheMovieDB.hs

{-This file is part of the Haskell package themoviedb. It is subject tothe license terms in the LICENSE file found in the top-level directoryof this distribution and at git://pmade.com/themoviedb/LICENSE. Nopart of themoviedb package, including this file, may be copied,modified, propagated, or distributed except according to the termscontained in the LICENSE file.-}{- |This library provides some data types and functions for fetching moviemetadata from <http://TheMovieDB.com>.  To use this library start byrequesting an API key from <http://docs.themoviedb.apiary.io>.A typical workflow while using this library is:  1. Place an API 'Key' inside a 'Context' using 'mkContext' or one of     the utility functions in "Network.API.TheMovieDB.Util".  2. Retrieve API 'Configuration' information using either the     'config' function or the 'configErr' function.  3. Search TheMovieDB using either the 'search' function or the     'searchErr' function.  4. Since the search functions don't return a full 'Movie' record     follow them up with the 'fetch' function or the 'fetchErr'     function.This library also includes an example executable in the @example@directory.-}module Network.API.TheMovieDB (  -- * Types  -- ** TheMovieDB Metadata  Configuration(),  Movie(..),  Genre(..),  -- ** Context and Errors  Context(),  Error(..),  -- ** Type Synonyms  Key,  MovieID,  GenreID,  SearchQuery,  -- * API Functions  -- ** Functions That Fail  config,  fetch,  search,  -- ** Functions That Return Errors  configErr,  fetchErr,  searchErr,  -- ** Utility functions  mkContext,  apiKey,  moviePosterURLs  ) whereimport Network.API.TheMovieDB.Typesimport Network.API.TheMovieDB.Configimport Network.API.TheMovieDB.Fetchimport Network.API.TheMovieDB.Search