pa_checkAPIKey | R Documentation |
api_key
.Sends a request to the PurpleAirAPI API endpoint described at: https://api.purpleair.com/#api-keys-check-api-key
pa_checkAPIKey(api_key = NULL, baseUrl = "https://api.purpleair.com/v1/keys")
api_key |
PurpleAir API key. |
baseUrl |
URL endpoint for the "Check Key" API. |
List containing key type information.
# Fail gracefully if any resources are not available
try({
library(AirSensor)
pa_checkAPIKey(
api_key = PURPLE_AIR_API_READ_KEY
)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.