uptimerobot.account.details {uptimeRobot} | R Documentation |
uptimerobot.account.details
returns a list or a vector with the account details connected to the given api key.
uptimerobot.account.details(api.key, unlist = FALSE)
api.key |
string with a valid key for connecting to Uptimerobot API. |
unlist |
logical. Set to |
A list or a vector with the account details.
Gabriele Baldassarre
## 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)