Description Usage Arguments Value
View source: R/authentication.R
function doing twitter oauth authentication
1 | twitter_token(key = "", secret = "", token = "", token_secret = "")
|
key |
optional key argument; if left as is twitter_token() will first look if twitterlight_key was set before in the session by set_twitter_credetnials and thereafter check if it can find the values in an .Renviron file via sys.getenv("twitterlight_key") |
secret |
same as key parameter except function will search for twitterlight_secret |
token |
for headless mode, in normal mode token will be fetched and permissions checked interactively by user; if interaction is impossible token can be supplied manually |
token_secret |
for headless mode, in normal mode token will be fetched and permissions checked interactively by user; if interaction is impossible token can be supplied manually |
twitter token used for API interaction by package functions
internal usage: httr::GET(... httr::config( token = twitter_token(key, secret) ) )
@seealso twl_set_credentials, Sys.getenv, oauth_app, oauth1.0_token
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.