get_devices {pushoverr} | R Documentation |
Get a list of the user's registered devices
Description
get_devices()
queries the Pushover API for a list of the devices that
have been registered by the given user
is.registered_device()
determines whether the given device is
registered to the given user
Usage
get_devices(user = get_pushover_user(), app = get_pushover_app())
is.registered_device(
device,
user = get_pushover_user(),
app = get_pushover_app()
)
Arguments
user |
Pushover user key (see |
app |
Pushover application token (see |
device |
The name of a device |
Value
get_devices()
returns a list of device names registered by the
given user
is.registered_ device()
returns a logical value for each of the
given devices that indicates whether or not that device is registered to the
given user.
Examples
## Not run:
get_devices(
user = "uQiRzpo4DXghDmr9QzzfQu27cmVRsG",
app = "azGDORePK8gMaC0QOYAMyEEuzJnyUi"
)
## End(Not run)
## Not run:
is.registered_device(device = "phone")
## End(Not run)
[Package pushoverr version 1.1.0 Index]