Last active
July 13, 2019 06:07
-
-
Save alstat/9656597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(RCurl) | |
# Set SSL certs globally | |
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))) | |
library(twitteR) | |
reqURL <- "https://api.twitter.com/oauth/request_token" | |
accessURL <- "https://api.twitter.com/oauth/access_token" | |
authURL <- "https://api.twitter.com/oauth/authorize" | |
apiKey <- "xxxxxxxxxxxxxxxxxxxxxx" | |
apiSecret <- "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
twitCred <- OAuthFactory$new( | |
consumerKey = apiKey, | |
consumerSecret = apiSecret, | |
requestURL = reqURL, | |
accessURL = accessURL, | |
authURL = authURL | |
) | |
twitCred$handshake( | |
cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl") | |
) | |
registerTwitterOAuth(twitCred) |
install.packages("twitteR")
install.packages("ROAuth")
library(twitteR)
library(ROAuth)
require(RCurl)
Thanks sickopath, your solution (and mis6036) worked perfectly.
Thanks mis6306, Solution working good !!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There seems to be a new way to do this now, the above ways didn't work for me.
After that is done you'll have direct access. More straightforward IMO.