tcn_token: Get a twitter API access token

View source: R/tcn_token.R

tcn_tokenR Documentation

Get a twitter API access token

Description

Assigns a bearer token to the token object or retrieves a bearer token from the Twitter API using a Twitter apps consumer keys.

Usage

tcn_token(bearer = NULL, consumer_key = NULL, consumer_secret = NULL)

Arguments

bearer

Character string. App bearer token.

consumer_key

Character string. App consumer key.

consumer_secret

Character string. App consumer secret.

Value

Named list containing the token.

Examples

## Not run: 

# assign bearer token
token <- tcn_token(bearer = "xxxxxxxx")

# retrieve twitter app bearer token
token <- tcn_token(consumer_key = "xxxxxxxx",
                   consumer_secret = "xxxxxxxx")

## End(Not run)


voson.tcn documentation built on Aug. 30, 2022, 5:07 p.m.