api_key
R/PurpleAir_API.R
PurpleAir_getGroupsList.Rd
Sends a request to the PurpleAirAPI API endpoint described at: https://api.purpleair.com/#api-groups-get-groups-list
PurpleAir_getGroupsList(
api_key = NULL,
baseUrl = "https://api.purpleair.com/v1/groups"
)
PurpleAir API READ ey.
URL endpoint for the "Get Groups List" API.
List containing all groups owned by api_key
.
# \donttest{
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_getGroupsList(
api_key = PurpleAir_API_READ_KEY
)
}, silent = FALSE)
#> Error in MazamaCoreUtils::stopIfNull(api_key) :
#> object 'PurpleAir_API_READ_KEY' not found
# }