pushover_api {pushoverr} | R Documentation |
Issue a command using the Pushover API
Description
pushover_api()
allows commands to be issued using the Pushover API.
This is a generic function that is meant to be used by higher level
functions. In most instances, more specific functions should be used (e.g.,
pushover()
).
Usage
pushover_api(verb, url, ...)
Arguments
verb |
Name of verb to use. |
url |
the url of the page to retrieve |
... |
Arguments passed on to
|
Value
a list containing the following fields and any other fields related to the specific API call:
-
status
: request status (1
= success) -
request
: unique request ID -
raw
: the raw httr::response object -
errors
: a list of error messages (only for unsuccessful requests)
Examples
## Not run:
pushover_api(
verb = "GET",
url = "https://api.pushover.net/1/sounds.json",
query = list(token = "azGDORePK8gMaC0QOYAMyEEuzJnyUi")
)
## End(Not run)