oauth_twitter_token: Authenticate Twitter API access and get bearer token

Description Usage Arguments Details Value

View source: R/authenticate.R

Description

oauth_twitter_token authenticates the provided credentials against the Twitter oauth2/token endpoint and returns the authentication (bearer) token required for calls to other Twitter API endpoints (consult the Twitter API documentation on application-only authentication for details).

Usage

1
oauth_twitter_token(consumerKey, consumerSecret)

Arguments

consumerKey

a character string specifying the consumer key for the registered authenticating Twitter application in the Academic Research product track

consumerSecret

a character string specifying the consumer secret for the registered authenticating Twitter application in the Academic Research product track

Details

This authentication method requires a consumer key and consumer secret for a registered Twitter application (see here for details).

Value

a character string representing a valid bearer token


sdaume/twittrcademic documentation built on Dec. 22, 2021, 11:11 p.m.