themoviedb-1.2.1: Haskell API bindings for http://themoviedb.org
CopyrightThis file is part of the package themoviedb. It is subject to
the license terms in the LICENSE file found in the top-level
directory of this distribution and at:

https://github.com/pjones/themoviedb

No part of this package including this file may be copied
modified propagated or distributed except according to the terms
contained in the LICENSE file.
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Network.API.TheMovieDB.Internal.Configuration

Description

Internal configuration information for TheMovieDB API.

Synopsis

Documentation

data Configuration Source #

TheMovieDB API tries to preserve bandwidth by omitting information (such as full URLs for poster images) from most of the API calls. Therefore in order to construct a complete URL for a movie poster you'll need to use the config function to retrieve API configuration information.

A helper function is provided (moviePosterURLs) that constructs a list of all poster URLs given a Movie and Configuration.

According to the API documentation for TheMovieDB, you should cache the Configuration value and only request it every few days.

Constructors

Configuration 

Fields

Instances

Instances details
Generic Configuration Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Configuration

Associated Types

type Rep Configuration :: Type -> Type #

ToJSON Configuration Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Configuration

FromJSON Configuration Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Configuration

type Rep Configuration Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Configuration

type Rep Configuration = D1 ('MetaData "Configuration" "Network.API.TheMovieDB.Internal.Configuration" "themoviedb-1.2.1-6maNURGzi74BMNjlj5A7S2" 'False) (C1 ('MetaCons "Configuration" 'PrefixI 'True) (S1 ('MetaSel ('Just "cfgImageBaseURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "cfgImageSecBaseURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "cfgPosterSizes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))))

posterURLs :: Configuration -> Text -> [Text] Source #

Return a list of URLs for all possible posters.