Sends request to generate oauth 1.0 tokens. Twitter also allows uers to create user-only (oauth 2.0) access token. Unlike the 1.0 tokens, oath 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.
create_token(app = "mytwitterapp", consumer_key, consumer_secret,
cache = TRUE)
Name of user created Twitter application
Application API key
Application API secret User-owned
app must have Read and write
access level
and Callback URL
of http://127.0.0.1:1410
.
Logical indicating whether to cache the token as a .httr-oauth file. The default is TRUE, which means the cached token file will be added to the user's working directory. Ideally, users will store their token as an environment variable (see the tokens vignette for instructions), but the cache file works as long as always return to the same working directory.
Twitter personal access token object
https://dev.twitter.com/overview/documentation
Other tokens: get_tokens