Sends a request to the PurpleAirAPI API endpoint described at: https://api.purpleair.com/#api-groups-get-group-detail
PurpleAir_getGroupDetail(
api_key = NULL,
group_id = NULL,
baseUrl = "https://api.purpleair.com/v1/groups"
)
PurpleAir API READ key.
The group_id
of the requested group. This group must
be owned by the api_key
.
URL endpoint for the "Get Group Detail" API.
List containing all members of the specified group.
# \donttest{
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_getGroupDetail(
api_key = PurpleAir_API_READ_KEY,
group_id = MY_GROUP_ID
)
}, silent = FALSE)
#> Error in MazamaCoreUtils::stopIfNull(api_key) :
#> object 'PurpleAir_API_READ_KEY' not found
# }