tcn_token {voson.tcn}R 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)


[Package voson.tcn version 0.5.0 Index]