Learn R Programming

uptimeRobot (version 1.0.0)

uptimerobot.account.details: 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.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab