Learn R Programming

RKorAPClient (version 1.0.0)

persistAccessToken,KorAPConnection-method: Persist current access token in keyring

Description

Persist current access token in keyring

Usage

# S4 method for KorAPConnection
persistAccessToken(kco, accessToken = kco@accessToken)

Value

KorAPConnection object.

Arguments

kco

KorAPConnection object

accessToken

access token to be persisted. If not supplied, the current access token of the KorAPConnection object will be used.

See Also

clearAccessToken(), auth()

Examples

Run this code
if (FALSE) {
kco <- new("KorAPConnection", accessToken="e739u6eOzkwADQPdVChxFg")
persistAccessToken(kco)

kco <- new("KorAPConnection") %>% auth(app_id="") %>% persistAccessToken()
}

Run the code above in your browser using DataLab