pushover()
sends a message (push notification) to a user or group.
Messages can be given different priorities, play different sounds, or require
acknowledgments.
pushover_normal()
, pushover_silent
, pushover_quiet
, pushover_high
,
and pushover_emergency
functions send messages with those priorities.
pushover(
message,
title = NULL,
priority = 0,
attachment = NULL,
user = get_pushover_user(),
app = get_pushover_app(),
device = NULL,
sound = NULL,
url = NULL,
url_title = NULL,
format = c("html", "monospace"),
retry = 60,
expire = 3600,
callback = NULL,
timestamp = NULL
)pushover_silent(message, ...)
pushover_quiet(message, ...)
pushover_normal(message, ...)
pushover_high(message, ...)
pushover_emergency(message, ...)
The message to be sent (max. 1024 characters). Messages use
glue::glue()
for formatting and interpolation.
(optional) The message's title. Titles use glue::glue()
for
formatting and interpolation.
Message priority (-2
: silent, -1
: quiet, 0
: normal
(default), 1
: high, 2
: emergency)
Path of file attachment to include. File must be image format (bmp, jpg, png, tif) and no larger than 2.6 MB.
user/group key (see set_pushover_user()
)
application token (see set_pushover_app()
)
(optional) name of the device(s) to send message to. Defaults to all devices.
(optional) name of the sound to play (see https://pushover.net/api#sounds)
(optional) supplementary URL to display with message
(optional) title to show for supplementary URL
Message formatting. If html
(default), messages can include a
limited subset of HTML formatting. If
monospace
, text is formatted using monospace font.
(optional) how often (in seconds) to repeat emergency priority messages (min: 30 seconds; default: 60 seconds)
(optional) how long (in seconds) emergency priority messages will be retried (max: 86400 seconds; default: 3600 seconds)
(optional) callback URL to be visited (HTTP POST) once an emergency priority message has been acknowledged (details)
(optional) a Unix timestamp containing the date and time to display to the user instead of the time at which the message was received
Additional arguments to pass to pushover()
an invisible list containing the following fields:
status
: request status (1 = success)
request
: unique request ID
raw
: the raw httr::response object
receipt
: a receipt ID (only for emergency priority messages)
errors
: a list of error messages (only for unsuccessful requests)
# NOT RUN {
pushover(message = "Hola Mundo!")
# }
Run the code above in your browser using DataLab