Commit f2e4ae62 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle
Browse files

add authentication args

parent 059b96b9
......@@ -2,16 +2,17 @@
#' luftlyr_get_data
#' @param x request object
#' @param ... authentication options
#' @param username username
#' @param password password
#' @keywords luftlyr
#' @export
#' @examples
#' \dontrun{
#' luftlyr_get_data()
#' }
luftlyr_get_data <- function(x,...) {
luftlyr_get_data <- function(x,username,password) {
db <- luftkvalr::luftkvalr()
db$start(...)
db$start(username,password)
tmp_st <- db$GetAQStations(stationIDs=x$stationObj$station_id,locationName=x$stationObj$locationName)
tmp_ts <- db$GetAQTimeseries(stationIDs=tmp_st$ST_ID,componentName=x$elementObj$element_id)
res <- db$GetAQData(stationIDs=tmp_st$ST_ID,
......@@ -29,16 +30,17 @@ luftlyr_get_data <- function(x,...) {
#' luftlyr_getmeta
#' @param x request object
#' @param ... authentication options
#' @param username username
#' @param password password
#' @keywords luftlyr
#' @export
#' @examples
#' \dontrun{
#' luftlyr_get_meta()
#' }
luftlyr_get_meta <- function(x,...) {
luftlyr_get_meta <- function(x,username,password) {
db <- luftkvalr::luftkvalr()
db$start(...)
db$start(username,password)
tmp_st <- db$GetAQStations(stationIDs=x$stationObj$station_id,locationName=x$stationObj$locationName)
tmp_ts <- db$GetAQTimeseries(stationIDs=tmp_st$ST_ID,componentName=x$elementObj$element_id)
db$stop()
......
......@@ -5,12 +5,14 @@
\title{luftlyr_get_data
luftlyr_get_data}
\usage{
luftlyr_get_data(x, ...)
luftlyr_get_data(x, username, password)
}
\arguments{
\item{x}{request object}
\item{...}{authentication options}
\item{username}{username}
\item{password}{password}
}
\description{
luftlyr_get_data
......
......@@ -5,12 +5,14 @@
\title{luftlyr_get_meta
luftlyr_getmeta}
\usage{
luftlyr_get_meta(x, ...)
luftlyr_get_meta(x, username, password)
}
\arguments{
\item{x}{request object}
\item{...}{authentication options}
\item{username}{username}
\item{password}{password}
}
\description{
luftlyr_get_meta
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment