Description Usage Arguments Details Value Author(s) See Also Examples
This function wraps the OAuth authentication handshake functions from the httr package for a twitteR session
1 | setup_twitter_oauth(consumer_key, consumer_secret, access_token=NULL, access_secret=NULL)
|
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 |
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.
This is called for its side effect
Jeff Gentry
1 2 3 4 | ## Not run:
setup_twitter_oauth("CONSUMER_KEY", "CONSUMER_SECRET")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.