genericAQ: Base function to get data or metadata from the AQ Publish API

Description Usage Arguments Value

View source: R/api_tools.R

Description

Given a service request and a set of query parameters and values, return the output from the API

Usage

1
genericAQ(resource, parameters, values, host = "ts-api.nwis.usgs.gov")

Arguments

resource

the resource to retrieve - such as raw data (GetTimeSeriesRawData), or corrections (GetCorrectionList). See AQ API documentation for details on available resources

parameters

a character vector the names of the parameters to query by

values

the values corresponding to each parameter

host

the host to use - could be a test server for development, or the production server for running real queries

Value

the response from the query


PatrickEslick/CWQkitr documentation built on Dec. 12, 2019, 12:55 a.m.