View source: R/PurpleAir_API.R
PurpleAir_getMemberData | R Documentation |
Sends a request to the PurpleAir API endpoint described at: https://api.purpleair.com/#api-groups-get-member-data
PurpleAir_getMemberData(
api_key = NULL,
group_id = NULL,
member_id = NULL,
fields = NULL,
baseUrl = "https://api.purpleair.com/v1/groups"
)
api_key |
PurpleAir API READ key. |
group_id |
The |
member_id |
Unique |
fields |
Optional parameter specifying sensor data fields to return. |
baseUrl |
URL endpoint for the "Get Member Data" API. |
List containing all recent data for a single sensor.
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
PurpleAir_getMemberData(
api_key = PurpleAir_API_READ_KEY,
group_id = MY_GROUP_ID,
member_id = MY_MEMBER_ID
)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.