create_token: Create custom Twitter OAuth token

Description Usage Arguments Value See Also

View source: R/tokens.R

Description

[Deprecated] By default, create_token() does three things: it creates an authentication "token", sets it as the default token for the current session, and save it to disk to make it the default for future sessions.

These three components have now been split up into three separate pieces: use rtweet_user()/rtweet_app()/rtweet_bot() to create the token, auth_as() to make it the default for this session, and auth_save() to use it in future sessions. See vignette("auth") for full details.

Usage

1
2
3
4
5
6
7
8
create_token(
  app = "mytwitterapp",
  consumer_key = NULL,
  consumer_secret = NULL,
  access_token = NULL,
  access_secret = NULL,
  set_renv = TRUE
)

Arguments

app

Name of user created Twitter application

consumer_key, consumer_secret

App API key and secret.

access_token, access_secret

Access token and secret.

set_renv

Should the token be cached?

Value

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

See Also

Other tokens: get_token(), rate_limit()


mkearney/rtweet documentation built on Sept. 29, 2021, 12:01 p.m.