Hi,
I am a novice here and I tried to revamp my codes. A week ago, the codes are still running but I have encountered some error and I cannot get it to work now.
I am running the following codes using R Studio and I get a “Sorry, that page does not exist” when requesting for the token.
Can someone help me to see if I need to change anything please?
require(twitteR)
library(ROAuth)
library(plyr)
library(stringr)
library(ggplot2)
download.file(url=“http://curl.haxx.se/ca/cacert.pem”, destfile=“cacert.pem”)
requestURL<-"https://api.twitter.com/oauth/request_token"
accessURL<-"https://api.twitter.com/oauth/access_token"
authURL<-“https://api.twitter.com/oauth/authorise”
consumerKey = "XXX"
consumerSecret = "XXX"
Cred <- OAuthFactory$new(consumerKey=consumerKey,
consumerSecret=consumerSecret,
requestURL=requestURL,
accessURL=accessURL,
authURL=authURL)
Cred$handshake(cainfo = system.file(“CurlSSL”, “cacert.pem”, package = “RCurl”) )