Learn R Programming

vosonSML (version 0.32.7)

auth_twitter_app: Twitter App API authentication

Description

If an individual has applied for and been granted Twitter API access they will also have a bearer token associated with their app. This token allows read-only access to the API but higher rate-limits so it is the most suited method for this package and data collection.

Usage

auth_twitter_app(bearer, verbose = FALSE, ...)

Value

A credential object containing an access token $auth and social media type descriptor $socialmedia set to "twitter". Object has the class names "credential" and "twitter".

Arguments

bearer

Character string. Twitter app bearer token.

verbose

Logical. Output additional information. Default is FALSE.

...

Additional parameters passed to function. Not used in this method.

Examples

Run this code
if (FALSE) {
# twitter API access using an app bearer token
auth <- auth_twitter_app("xxxxxxxxxxxx")
}

Run the code above in your browser using DataLab