Learn R Programming

ntfy (version 0.1.0)

ntfy_history: Retrieve History of Notifications

Description

Retrieve History of Notifications

Usage

ntfy_history(
  since = "all",
  topic = ntfy_topic(),
  server = ntfy_server(),
  auth = ntfy_auth(),
  username = ntfy_username(),
  password = ntfy_password(),
  ...
)

Value

a data.frame() with one row per notification, with columns as described in the documentation

Arguments

since

duration (e.g. "10m" or "30s"), a Unix timestamp (e.g. "1635528757"), a message ID (e.g. "nFS3knfcQ1xe"), or "all" (all cached messages)

topic

subscribed topic to which to send notification

server

ntfy server

auth

logical indicating if the topic requires password authorization

username

username with access to a protected topic.

password

password with access to a protected topic.

...

any other (named) query parameters to add to the request

See Also

Examples

Run this code
if (FALSE) { # interactive()
# get the last hour of notifications
ntfy_history(since = "1h")
}

Run the code above in your browser using DataLab