R/PurpleAir_API.R
PurpleAir_checkAPIKey.RdSends a request to the PurpleAirAPI API endpoint described at: https://api.purpleair.com/#api-keys-check-api-key
PurpleAir_checkAPIKey(
api_key = NULL,
baseUrl = "https://api.purpleair.com/v1/keys"
)List containing key type information.
# \donttest{
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_checkAPIKey(
api_key = PurpleAir_API_READ_KEY
)
}, silent = FALSE)
#> Error in eval(expr, envir) : object 'PurpleAir_API_READ_KEY' not found
# }