themoviedb-1.1.5.2: Haskell API bindings for http://themoviedb.org

Safe HaskellNone
LanguageHaskell2010

Network.API.TheMovieDB.Internal.Types

Description

Simple types and synonyms, mostly to make the type signatures easier to read.

Synopsis

Documentation

type ItemID = Int Source #

Type to represent IDs used by the API.

type Key = Text Source #

Type for the API key issued by TheMovieDB.

type Body = ByteString Source #

HTTP body.

type Path = String Source #

URL path.

data Error Source #

Possible errors returned by the API.

Constructors

InvalidKeyError

Missing or invalid API key. Make sure you are using a valid API key issued by https://www.themoviedb.org/faq/api.

HttpExceptionError HttpException

An exception relating to HTTP was thrown while interacting with the API.

ServiceError String

The HTTP interaction with the API service did not result in a successful response. Information about the failure is encoded in the String.

ResponseParseError String (Maybe ByteString)

Invalid or error response from the API.

Instances
Show Error Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Types

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #