Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Request = Request {}
- defaultRequest :: APIToken -> UserKey -> Message -> Request
- data URL = URL {}
- data Priority
- data NotificationSound
- = Pushover
- | Bike
- | Bugle
- | CashRegister
- | Classical
- | Cosmic
- | Falling
- | Gamelan
- | Incoming
- | Intermission
- | Magic
- | Mechanical
- | PianoBar
- | Siren
- | SpaceAlarm
- | TugBoat
- | AlienAlarm
- | Climb
- | Persistent
- | Echo
- | UpDown
- | None
- makeHttpRequest :: Request -> IO Request
Constructing a request
Contains the contents of a Pushover notification request. This follows
the API specification at https://pushover.net/api
.
Request | |
|
defaultRequest :: APIToken -> UserKey -> Message -> Request Source #
Construct a default request value.
As a request requires, at a minimum, an API token, a user key and a message, this function requires each of these values as an argument. Other fields can then be initialised using the regular Haskell record syntax.
Other request parameters
A URL for sending within a notification request.
A Pushover URL is optional within a request; if present, it may optionally contain a title to display instead of the URL itself.
Describes the priority of a particular message.
The different priority settings affect the way in which a notification is
presented to the user. See https://pushover.net/api#priority
for specific
details.
data NotificationSound Source #
Describes the notification sound for a notification.
HTTP request helper
makeHttpRequest :: Request -> IO Request Source #
Construct an HTTP request out of a Pushover request value.
This function is exposed for use by the functions in the Network.Pushover.Execute module. It is unlikely that the user will require to call it directly.