verify_user {pushoverr} | R Documentation |
User and group verification
Description
verify_user()
determines whether or not the given user or
group is registered with Pushover, returning information about that user.
verify_group()
is an alias for verify_user()
is.registered_user()
indicates whether or not a given user ID
is registered with Pushover
Usage
verify_user(user, app = get_pushover_app(), device = NULL)
verify_group(user, app = get_pushover_app(), device = NULL)
is.registered_user(user, app = get_pushover_app(), device = NULL)
is.registered_group(user, app = get_pushover_app(), device = NULL)
Arguments
user |
user/group key to verify |
app |
application token (see |
device |
(optional) device to verify If supplied the device must be registered to the given user's account. |
Value
verify_user()
and verify_group()
return a list containing
the following fields:
-
status
: request status (1
= success) -
devices
: a list of the user's devices -
request
: unique request ID -
errors
: a list of error messages (only for unsuccessful requests) -
raw
: the raw httr::response object
is.registered_user()
and is.registered_group()
return a logical
value indicating whether or not the given user or group is registered.
Examples
## Not run:
verify_user(user = "uQiRzpo4DXghDmr9QzzfQu27cmVRsG")
## End(Not run)