This function wraps the OAuth authentication handshake functions from the httr package for a twitteR session
The consumer key supplied by Twitter
The consumer secret supplied by Twitter
The access token supplied by Twitter
The access secret supplied by Twitter
httr package can cache authentication. See
access_secret are set (i.e. not
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
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.