auth,KorAPConnection-method | R Documentation |
Authorize RKorAPClient to make KorAP queries and download results on behalf of the user.
## S4 method for signature 'KorAPConnection'
auth(
kco,
app_id = generic_kor_app_id,
app_secret = NULL,
scope = kco@oauthScope
)
kco |
KorAPConnection object |
app_id |
OAuth2 application id. Defaults to the generic KorAP client application id. |
app_secret |
OAuth2 application secret. Used with confidential client applications. Defaults to |
scope |
OAuth2 scope. Defaults to "search match_info". |
KorAPConnection object with access token set in @accessToken
.
persistAccessToken()
, clearAccessToken()
## Not run:
kco <- KorAPConnection(verbose = TRUE) %>% auth()
df <- collocationAnalysis(kco, "focus([marmot/p=ADJA] {Ameisenplage})",
leftContextSize=1, rightContextSize=0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.