Copyright | This 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. |
---|---|
License | MIT |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Internal configuration information for TheMovieDB API.
Synopsis
- data Configuration = Configuration {}
- posterURLs :: Configuration -> Text -> [Text]
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.
Configuration | |
|
Instances
posterURLs :: Configuration -> Text -> [Text] Source #
Return a list of URLs for all possible posters.