Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines the Response
and ResponseSuccess
types.
- data Response = Response {
- status :: ResponseStatus
- request :: Text
- data ResponseStatus
- = Success
- | Failure [RequestError]
- type RequestError = Text
Documentation
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.
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.
type RequestError = Text Source #