uptimerobot.account.details {uptimeRobot}R Documentation

Get the account details for who is linked to the given API key

Description

uptimerobot.account.details returns a list or a vector with the account details connected to the given api key.

Usage

uptimerobot.account.details(api.key, unlist = FALSE)

Arguments

api.key

string with a valid key for connecting to Uptimerobot API.

unlist

logical. Set to TRUE to unlist the output to a named vector, FALSE to get a named list.

Value

A list or a vector with the account details.

Author(s)

Gabriele Baldassarre

Examples

## Not run: 
# Let's assume the api.key is available into the environment variable KEY
api.key <- Sys.getenv("KEY", "")

# Returns details as a list
details.list <- uptimerobot.account.details(api.key)

# Returns details as a vector
details.num <- uptimerobot.account.details(api.key, unlist = TRUE)

## End(Not run)

[Package uptimeRobot version 1.0.0 Index]