View source: R/PurpleAir_API.R
PurpleAir_getGroupDetail | R Documentation |
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"
)
api_key |
PurpleAir API READ key. |
group_id |
The |
baseUrl |
URL endpoint for the "Get Group Detail" API. |
List containing all members of the specified group.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.