PurpleAir_getGroupsList: Retrieve all groups owned by the provided 'api_key'

View source: R/PurpleAir_API.R

PurpleAir_getGroupsListR Documentation

Retrieve all groups owned by the provided api_key

Description

Sends a request to the PurpleAirAPI API endpoint described at: https://api.purpleair.com/#api-groups-get-groups-list

Usage

PurpleAir_getGroupsList(
  api_key = NULL,
  baseUrl = "https://api.purpleair.com/v1/groups"
)

Arguments

api_key

PurpleAir API READ ey.

baseUrl

URL endpoint for the "Get Groups List" API.

Value

List containing all groups owned by api_key.

Examples


# Fail gracefully if any resources are not available
try({

library(AirSensor2)

  PurpleAir_getGroupsList(
    api_key = PurpleAir_API_READ_KEY
  )

}, silent = FALSE)


MazamaScience/AirSensor2 documentation built on Oct. 31, 2024, 1:39 a.m.