AuthenticateWithTwitterAPI: Note: this function is DEPRECATED and will be removed in a...

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

View source: R/AuthenticateWithTwitterAPI.R

Description

Twitter API Authentication

Usage

1
2
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.

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/

Value

This is called for its side effect.

Author(s)

Timothy Graham <timothy.graham3@uq.net.au> & Robert Ackland <robert.ackland@anu.edu.au>

See Also

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

Examples

 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)

SocialMediaLab documentation built on May 29, 2017, 9:41 p.m.