Marc Kupietz | a4f51d7 | 2025-01-25 16:23:18 +0100 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/KorAPConnection.R |
| 3 | \name{persistAccessToken,KorAPConnection-method} |
| 4 | \alias{persistAccessToken,KorAPConnection-method} |
| 5 | \alias{persistAccessToken} |
| 6 | \title{Persist current access token in keyring} |
| 7 | \usage{ |
| 8 | \S4method{persistAccessToken}{KorAPConnection}(kco, accessToken = kco@accessToken) |
| 9 | } |
| 10 | \arguments{ |
| 11 | \item{kco}{KorAPConnection object} |
| 12 | |
| 13 | \item{accessToken}{access token to be persisted. If not supplied, the current access token of the KorAPConnection object will be used.} |
| 14 | } |
| 15 | \value{ |
| 16 | KorAPConnection object. |
| 17 | } |
| 18 | \description{ |
| 19 | Persist current access token in keyring |
| 20 | } |
| 21 | \examples{ |
| 22 | \dontrun{ |
| 23 | kco <- new("KorAPConnection", accessToken="e739u6eOzkwADQPdVChxFg") |
| 24 | persistAccessToken(kco) |
| 25 | |
| 26 | kco <- new("KorAPConnection") \%>\% auth(app_id="<my application id>") \%>\% persistAccessToken() |
| 27 | } |
| 28 | |
| 29 | } |
| 30 | \seealso{ |
| 31 | \code{\link[=clearAccessToken]{clearAccessToken()}}, \code{\link[=auth]{auth()}} |
| 32 | } |