Learn R Programming

pushoverr (version 0.1.4)

PushoverMessage-class: The PushoverMessage class

Description

PushoverMessage objects represent a Pushover message and implements all of the features available in Pushover's API (https://pushover.net/api). PushoverMessage objects are used to build queries that are sent to Pushover's servers.

Arguments

Slots

message
The message to be sent (max. 512 characters)
token
The application token
user
The user or group key to send the message to
device
The device to send the notification to (optional)
title
The title of the message (optional)
url
A URL to be included in the message (optional, max. 512 characters)
url_title
A title for the given url (optional, max. 100 characters)
priority
The message's priority. One of: -2 (silent), -1 (quiet), 0 (normal, default), 1 (high), 2 (emergency). Quiet messages do not play a sound. Emergency messages require acknowledgement.
timestamp
The time to associate with the message (default: now, format: UNIX time)
sound
The sound to be played when the message is received (see get_pushover_sounds)
callback
A callback URL. For emergency priority, a POST request will be sent to this URL when the message is acknowledged (see https://pushover.net/api#receipt)
retry
The number of seconds between re-sending of an unacknowledged emergency message (default: 60, min: 30)
expire
The number of seconds until an unacknowledged emergency message will stop being resent (default: 3600, max: 86400).

See Also

PushoverMessage

Examples

Run this code
## Not run: 
# library(pushoverr)
# 
# # Create a PushoverMessage
# m1 <- PushoverMessage(message='Hi there',
#                       token='KzGDORePK8gMaC0QOYAMyEEuzJnyUi',
#                       user='KAWXTswy4cekx6vZbHBKbCKk1c1fdf')
# ## End(Not run)

Run the code above in your browser using DataLab