twitter_token: function doing twitter oauth authentication

Description Usage Arguments Value

View source: R/authentication.R

Description

function doing twitter oauth authentication

Usage

1
twitter_token(key = "", secret = "", token = "", token_secret = "")

Arguments

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

Value

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


petermeissner/twitterlight documentation built on May 25, 2019, 2:08 a.m.