Learn R Programming

pushoverr (version 0.1.2)

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 names

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

Examples

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

Run the code above in your browser using DataLab