Get the devices or for a tenant.
get_devices(num_rows = NULL, parse_json = TRUE)
num_rows | The number of records to return. |
---|---|
parse_json | If TRUE, parse the JSON object into a data frame. |
A data.frame
if parse_json = TRUE
,
and a character string otherwise.
If num_rows = NULL
(default), all devices are returned.
If parse_json
is TRUE, the JSON object is parsed using jsonlite::fromJSON
before being returned. The data is converted to a single flattened data frame.
If parse_json
is FALSE, the JSON object is returned as a JSON string.
if (FALSE) { get_devices() }