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

Description Usage Arguments Value Examples

View source: R/get_devices.R

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

1
2
3
4
5
6
7

Arguments

user

Pushover user key (see set_pushover_user())

app

Pushover application token (see set_pushover_app())

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
get_devices(
  user = "uQiRzpo4DXghDmr9QzzfQu27cmVRsG",
  app = "azGDORePK8gMaC0QOYAMyEEuzJnyUi"
)

## End(Not run)
## Not run: 
is.registered_device(device = "phone")

## End(Not run)

pushoverr documentation built on Nov. 16, 2021, 9:17 a.m.