Learn R Programming

pushoverr (version 1.0.0)

get_devices: 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.device determines whether the given device is registered to the given user

Usage

get_devices(user = get_pushover_user(), app = get_pushover_app())

is.device(device, user = get_pushover_user(), app = get_pushover_app())

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.device returns a logical value for each of the given devices that indicates whether (TRUE) or not (FALSE) that device is registered to the given user.

Examples

Run this code
# NOT RUN {
get_devices(user = "uQiRzpo4DXghDmr9QzzfQu27cmVRsG", app = "azGDORePK8gMaC0QOYAMyEEuzJnyUi")
# }
# NOT RUN {
is.device(device = "phone")
# }

Run the code above in your browser using DataLab