Learn R Programming

vosonSML (version 0.23.4)

AuthenticateWithTwitterAPI: Note: this function is DEPRECATED and will be removed in a future release. Please use the Authenticate function

Description

Twitter API Authentication

Usage

AuthenticateWithTwitterAPI(api_key, api_secret, access_token,
  access_token_secret, createToken)

Arguments

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.

Value

This is called for its side effect.

Details

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/

See Also

AuthenticateWithFacebookAPI and AuthenticateWithYouTubeAPI for other ways to collect social media data.

Examples

Run this code
# NOT RUN {
# }
# 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)
# }

Run the code above in your browser using DataLab