powered by
Authorize RKorAPClient to make KorAP queries and download results on behalf of the user.
# S4 method for KorAPConnection auth( kco, app_id = generic_kor_app_id, app_secret = NULL, scope = kco@oauthScope )
KorAPConnection object with access token set in @accessToken.
@accessToken
KorAPConnection object
OAuth2 application id. Defaults to the generic KorAP client application id.
OAuth2 application secret. Used with confidential client applications. Defaults to NULL.
NULL
OAuth2 scope. Defaults to "search match_info".
persistAccessToken(), clearAccessToken()
persistAccessToken()
clearAccessToken()
if (FALSE) { kco <- new("KorAPConnection", verbose = TRUE) %>% auth() df <- collocationAnalysis(kco, "focus([marmot/p=ADJA] {Ameisenplage})", leftContextSize=1, rightContextSize=0) }
Run the code above in your browser using DataLab