setup_twitter_oauth: Sets up the OAuth credentials for a twitteR session

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function wraps the OAuth authentication handshake functions from the httr package for a twitteR session

Usage

1
setup_twitter_oauth(consumer_key, consumer_secret, access_token=NULL, access_secret=NULL)

Arguments

consumer_key

The consumer key supplied by Twitter

consumer_secret

The consumer secret supplied by Twitter

access_token

The access token supplied by Twitter

access_secret

The access secret supplied by Twitter

Details

The httr package can cache authentication. See Token for details

If both access_token and access_secret are set (i.e. not NULL), these will be supplied directly to the OAuth authentication instead of the browser based authentication dance one would normally experience. This requires you to already know the access tokens for your Twitter app. The usefuleness of this feature is primarily in a headless environment where a web browser is not available.

Value

This is called for its side effect

Author(s)

Jeff Gentry

See Also

Token, GET, POST

Examples

1
2
3
4
 ## Not run: 
    setup_twitter_oauth("CONSUMER_KEY", "CONSUMER_SECRET")
 
## End(Not run)

twitteR documentation built on May 2, 2019, 6:46 a.m.