blob: d903fbb0ddd363f4a02b02f92134755e1561ad44 [file] [log] [blame]
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/KorAPConnection.R
\docType{class}
\name{KorAPConnection-class}
\alias{KorAPConnection-class}
\alias{KorAPConnection}
\alias{initialize,KorAPConnection-method}
\alias{apiCall,KorAPConnection-method}
\alias{apiCall}
\alias{clearCache,KorAPConnection-method}
\alias{clearCache}
\alias{show,KorAPConnection-method}
\title{Class KorAPConnection}
\usage{
\S4method{initialize}{KorAPConnection}(.Object,
KorAPUrl = "https://korap.ids-mannheim.de/", apiVersion = "v1.0",
apiUrl, userAgent = "R-KorAP-Client", timeout = 10,
verbose = FALSE, cache = TRUE)
\S4method{apiCall}{KorAPConnection}(kco, url)
\S4method{clearCache}{KorAPConnection}(kco)
\S4method{show}{KorAPConnection}(object)
}
\arguments{
\item{.Object}{KorAPConnection object}
\item{KorAPUrl}{the URL of the KorAP server instance you want to access.}
\item{apiVersion}{which version of KorAP's API you want to connect to.}
\item{apiUrl}{URL of the KorAP web service.}
\item{userAgent}{user agent string.}
\item{timeout}{time out in seconds.}
\item{verbose}{logical. Decides whether following operations will default to be verbose.}
\item{cache}{logical. Decides if API calls are cached locally. You can clear the cache with \code{\link{clearCache}()}.}
\item{kco}{KorAPConnection object}
\item{url}{request url}
\item{object}{KorAPConnection object}
}
\value{
\code{\link{KorAPConnection}} object that can be used e.g. with \code{\link{corpusQuery}}
}
\description{
\code{KorAPConnection} objects represent the connection to a KorAP server.
New \code{KorAPConnection} objects can be created by \code{KorAPConnection()}.
}
\note{
Currently it is not possible to authenticate the client
}
\examples{
kcon <- new("KorAPConnection", verbose = TRUE)
kq <- corpusQuery(kcon, "Ameisenplage")
kq <- fetchAll(kq)
}