auth_twitter_app {vosonSML} | R Documentation |
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, ...)
Arguments
bearer |
Character string. Twitter app bearer token. |
verbose |
Logical. Output additional information. Default is |
... |
Additional parameters passed to function. Not used in this method. |
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"
.
Note
vosonSML uses the rtweet package for twitter data collection and also gratefully acknowledges the techniques and code written by its authors reproduced in this package for creating twitter API access tokens.
Examples
## Not run:
# twitter API access using an app bearer token
auth <- auth_twitter_app("xxxxxxxxxxxx")
## End(Not run)