View source: R/PurpleAir_API.R
PurpleAir_getGroupsList | R Documentation |
api_key
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"
)
api_key |
PurpleAir API READ ey. |
baseUrl |
URL endpoint for the "Get Groups List" API. |
List containing all groups owned by api_key
.
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_getGroupsList(
api_key = PurpleAir_API_READ_KEY
)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.