Learn R Programming

pushoverr (version 0.1.4)

get_devices: Get a list of the user's registered devices

Description

get_devices queries Pushover to receive a list of the devices given by the user (specified by their user key)

is.device determines whether or not a given device name is registered to the given user (specified by their user key)

Usage

get_devices(...)
is.device(device, ...)

Arguments

...
An app token and/or user key can be specified with the token and user aguments, respectively
device
A device name (e.g., 'phone')

Value

get_devices returns a vector of device namesis.device returns a boolean value indicating if the device is registered (TRUE) or not (FALSE)

Examples

Run this code
## Not run: 
# available_devs <- get_devices(token='KzGDORePK8gMaC0QOYAMyEEuzJnyUi',
#                               user='uQiRzpo4DXghDmr9QzzfQu27cmVRsG')
# ## End(Not run)
## Not run: 
# is.device(device='phone',
#           token='KzGDORePK8gMaC0QOYAMyEEuzJnyUi',
#           user='uQiRzpo4DXghDmr9QzzfQu27cmVRsG')
# ## End(Not run)

Run the code above in your browser using DataLab