Initialize KorAPConnection object
# S4 method for KorAPConnection
initialize(
.Object,
KorAPUrl = if (is.null(Sys.getenv("KORAP_URL")) | Sys.getenv("KORAP_URL") == "") {
"https://korap.ids-mannheim.de/"
} else {
Sys.getenv("KORAP_URL")
},
apiVersion = "v1.0",
apiUrl,
accessToken = getAccessToken(KorAPUrl),
oauthClient = NULL,
oauthScope = "search match_info",
authorizationSupported = TRUE,
userAgent = "R-KorAP-Client",
timeout = 240,
verbose = FALSE,
cache = TRUE
)