getWebServiceData: Function to return data from web services

Description Usage Arguments Value Examples

View source: R/getWebServiceData.R

Description

This function accepts a url parameter, and returns the raw data. The function enhances GET with more informative error messages.

Usage

1

Arguments

obs_url

character containing the url for the retrieval

...

information to pass to header request

Value

raw data from web services

Examples

1
2
3
4
5
6
7
8
siteNumber <- "02177000"
startDate <- "2012-09-01"
endDate <- "2012-10-01"
offering <- '00003'
property <- '00060'
obs_url <- constructNWISURL(siteNumber,property,startDate,endDate,'dv')

  rawData <- getWebServiceData(obs_url)

dataRetrieval documentation built on Sept. 14, 2021, 5:16 p.m.