[R] twitteR

José Luis Aguilar josestadistico at gmail.com
Thu Feb 26 14:39:29 CET 2015


Hello,

i need help,  I'm trying to get oauth authorization to get rcredentials
.RData

the code that i use is:

>library(twitteR)
>library(tm)
>library(wordcloud)
>library(RColorBrewer)
>library(RCurl)
>library(ROAuth)

>options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem",
package = "RCurl")))
>u = "
https://raw.github.com/tonybreyal/Blog-Reference-Functions/master/R/bingSearchXScraper/bingSearchXScraper
."
>x = getURL(u, cainfo = system.file("CurlSSL", "cacert.pem", package =
"RCurl"))

>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/authorize"

> consumerKey      <- "<< eED.....>>"
> consumerSecret   <- "<< qo.....>>"

>twitCred <- OAuthFactory$new(consumerKey=consumerKey,
                             consumerSecret=consumerSecret,
                             requestURL=reqURL,
                             accessURL=accessURL,
                             authURL=authURL)

)

when Asking for access

> twitCred$handshake(cainfo="cacert.pem")


i receive this message:

ERROR: AUTHORIZATION NO FOUND

Please help me,

thanks a lot!!

	[[alternative HTML version deleted]]



More information about the R-help mailing list