Description Usage Arguments Value See Also
Sends request to generate OAuth 1.0 tokens. Twitter also allows users to create user-only (OAuth 2.0) access token. Unlike the 1.0 tokens, OAuth 2.0 tokens are not at all centered on a host user. Which means these tokens cannot be used to send information (follow requests, Twitter statuses, etc.). If you have no interest in those capabilities, then 2.0 OAuth tokens do offer some higher rate limits. At the current time, the difference given the functions in this package is trivial, so I have yet to verified OAuth 2.0 token method. Consequently, I encourage you to use 1.0 tokens.
1 2 | create_token(app = "mytwitterapp", consumer_key, consumer_secret,
set_renv = TRUE)
|
app |
Name of user created Twitter application |
consumer_key |
Application API key |
consumer_secret |
Application API secret User-owned
application must have |
set_renv |
Logical indicating whether to save the created token as the default environment twitter token variable. Defaults to FALSE. If TRUE, the token is saved to user's home directory as ".rtweet_token.rds" (or, if that already exists, then .rtweet_token1.rds or .rtweet_token2.rds, etc.) and the path to the token to said token is then set in the user's .Renviron file and re- read to start being used in current active session. |
Twitter OAuth token(s) (Token1.0).
https://developer.twitter.com/en/docs/basics/authentication/overview/oauth
Other tokens: get_tokens
,
rate_limit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.