get_tokens: Fetching Twitter authorization token(s).

Description Usage Details Value See Also Examples

View source: R/tokens.R

Description

Call function used to fetch and load Twitter OAuth tokens. Since Twitter application key should be stored privately, users should save the path to token(s) as an environment variable. This allows Tokens to be instantly [re]loaded in future sessions. See the "tokens" vignette for instructions on obtaining and using access tokens.

Usage

1
2
3

Details

This function will search for tokens using R, internal, and global environment variables (in that order).

Value

Twitter OAuth token(s) (Token1.0).

See Also

Other tokens: create_token(), rate_limit()

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## fetch default token(s)
token <- get_tokens()

## print token
token


## End(Not run)

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.