blob: 7f0e66400e8f3c6b766db808cfdd965482b438f9 [file] [log] [blame]
Marc Kupietze95108e2019-09-18 13:23:58 +02001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/KorAPConnection.R
3\docType{class}
4\name{KorAPConnection-class}
5\alias{KorAPConnection-class}
6\alias{KorAPConnection}
7\alias{initialize,KorAPConnection-method}
Marc Kupietzd0d3e9b2019-09-24 17:36:03 +02008\alias{apiCall,KorAPConnection-method}
9\alias{apiCall}
Marc Kupietze95108e2019-09-18 13:23:58 +020010\alias{show,KorAPConnection-method}
11\title{Class KorAPConnection}
12\usage{
13\S4method{initialize}{KorAPConnection}(.Object,
Marc Kupietzf94a6c82019-09-19 11:32:07 +020014 KorAPUrl = "https://korap.ids-mannheim.de/", apiVersion = "v1.0",
Marc Kupietzd0d3e9b2019-09-24 17:36:03 +020015 apiUrl, userAgent = "R-KorAP-Client", timeout = 10,
16 verbose = FALSE)
17
18\S4method{apiCall}{KorAPConnection}(kco, url)
Marc Kupietze95108e2019-09-18 13:23:58 +020019
20\S4method{show}{KorAPConnection}(object)
21}
22\arguments{
23\item{.Object}{KorAPConnection object}
24
25\item{KorAPUrl}{the URL of the KorAP server instance you want to access.}
26
27\item{apiVersion}{which version of KorAP's API you want to connect to.}
28
29\item{apiUrl}{URL of the KorAP web service.}
30
Marc Kupietzd0d3e9b2019-09-24 17:36:03 +020031\item{userAgent}{user agent string.}
32
33\item{timeout}{time out in seconds.}
34
Marc Kupietz5a519822019-09-20 21:43:52 +020035\item{verbose}{logical decides wether following operations will default to be verbose}
36
Marc Kupietzd0d3e9b2019-09-24 17:36:03 +020037\item{kco}{KorAPConnection object}
38
39\item{url}{request url}
40
Marc Kupietze95108e2019-09-18 13:23:58 +020041\item{object}{KorAPConnection object}
42}
43\value{
44\code{\link{KorAPConnection}} object that can be used e.g. with \code{\link{corpusQuery}}
45}
46\description{
47\code{KorAPConnection} objetcs represent the connection to a KorAP server.
48New \code{KorAPConnection} objects can be created by \code{KorAPConnection()}
49}
50\note{
51Currently it is not possible to authenticate the client
52}
53\examples{
Marc Kupietz5a519822019-09-20 21:43:52 +020054kcon <- new("KorAPConnection", verbose = TRUE)
Marc Kupietze95108e2019-09-18 13:23:58 +020055kq <- corpusQuery(kcon, "Ameisenplage")
Marc Kupietz5a519822019-09-20 21:43:52 +020056kq <- fetchAll(kq)
Marc Kupietze95108e2019-09-18 13:23:58 +020057
58}