pushover-0.1.0.1: A Haskell Pushover API library

Safe HaskellNone
LanguageHaskell2010

Network.Pushover.Response

Description

This module defines the Response and ResponseSuccess types.

Synopsis

Documentation

data Response Source #

Describes a response received to a notification request. This follows the specification at https://pushover.net/api#response.

A request will either be successful or it will be unsuccessful. Where it is successful, an appropriate status indicator is returned. Where unsuccessful, the response will contain an errors key with a list of errors within the request.

In both cases, a request parameter is returned which uniquely identifies the request leading to the response.

Constructors

Response 

data ResponseStatus Source #

Describes a Pushover response status.

A request is either successful or unsuccessful. This is reflected in this type. Success has no additional data associated with it; failure has a list of errors associated.

Constructors

Success 
Failure [RequestError]