View source: R/PurpleAir_API.R
PurpleAir_createMember | R Documentation |
Sends a request to the PurpleAir API endpoint described at: https://api.purpleair.com/#api-groups-create-member
PurpleAir_createMember(
api_key = NULL,
group_id = NULL,
sensor_index = NULL,
baseUrl = "https://api.purpleair.com/#api-groups-create-member"
)
api_key |
PurpleAir API WRITE key. |
group_id |
The |
sensor_index |
Sensor index as returned by |
baseUrl |
URL endpoint for the "Create Member" API. |
List containing data associated with this this sensor.
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_getGroupDetail(
api_key = PurpleAir_API_READ_KEY,
group_id = MY_GROUP_ID,
sensor_index = MY_SENSOR_INDEX
)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.