File: client_save.Rd

package info (click to toggle)
r-cran-rtweet 2.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,068 kB
  • sloc: sh: 13; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/client.R
\name{client_save}
\alias{client_save}
\alias{client_list}
\title{Save an authentication mechanism for use in a future session}
\usage{
client_save(client)

client_list()
}
\arguments{
\item{client}{A client \code{\link[=rtweet_client]{rtweet_client()}}.}
}
\value{
Invisible the path where the client is saved.
}
\description{
Use \code{client_save()} with \code{\link[=client_as]{client_as()}} to avoid repeatedly entering app
credentials, making it easier to share auth between projects.
Use \code{client_list()} to list all saved credentials.
}
\details{
The tokens are saved on the clients folder in \code{tools::R_user_dir("rtweet", "config")}.
}
\examples{
\dontrun{
# save app client for use in other sessions
client <- rtweet_client()
client_save(client)

# later, in a different session...
client_as("my-app")
# Show all authentications stored
client_list()
}
}
\seealso{
\code{\link[=auth_sitrep]{auth_sitrep()}} to help finding and managing authentications.

Other client: 
\code{\link{client_as}()},
\code{\link{client_get}()},
\code{\link{client_has_default}()}
}
\concept{client}