View source: R/PurpleAir_API.R
PurpleAir_createGroup | R Documentation |
Sends a request to the PurpleAirAPI API endpoint described at: https://api.purpleair.com/#api-groups-create-group
PurpleAir_createGroup(
api_key = NULL,
name = NULL,
baseUrl = "https://api.purpleair.com/v1/groups"
)
api_key |
PurpleAir API WRITE key. |
name |
Human readable name associated with the new group. |
baseUrl |
URL endpoint for the "Create Group" API. |
List containing all members of the specified group.
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_createGroup(
api_key = PurpleAir_API_WRITE_KEY,
name = "My new group"
)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.