Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/AuthenticateWithTwitterAPI.R
Twitter API Authentication
1 2 | AuthenticateWithTwitterAPI(api_key, api_secret, access_token,
access_token_secret, createToken)
|
api_key |
character string specifying the 'API key' used for authentication. |
api_secret |
character string specifying the 'API secret' used for authentication. |
access_token |
character string specifying the 'access token' used for authentication. |
access_token_secret |
character string specifying the 'access token secret' used for authentication. |
createToken |
logical. !! NOT PROPERLY IMPLEMENTED YET. |
Oauth based authentication with the Twitter API
In order to collect data from Twitter, the user must first authenticate with Twitter's Application Programming Interface (API).
This requires setting up an App on Twitter. An excellent guide to achieving this can be found at: http://thinktostart.com/twitter-authentification-with-r/
This is called for its side effect.
Timothy Graham <timothy.graham3@uq.net.au> & Robert Ackland <robert.ackland@anu.edu.au>
AuthenticateWithFacebookAPI
and
AuthenticateWithYouTubeAPI
for other ways to collect social media
data.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Firstly specify your API credentials
my_api_key <- "1234567890qwerty"
my_api_secret <- "1234567890qwerty"
my_access_token <- "1234567890qwerty"
my_access_token_secret <- "1234567890qwerty"
AuthenticateWithTwitterAPI(api_key=my_api_key, api_secret=my_api_secret,
access_token=my_access_token, access_token_secret=my_access_token_secret)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.