pablobarbera / streamR

Dev version of streamR package: Access to Twitter Streaming API via R
http://cran.r-project.org/web/packages/streamR/
107 stars 47 forks source link

Error: Authorization Required #12

Open CaptainKatsuura opened 6 years ago

CaptainKatsuura commented 6 years ago

Hi,

I'm attempting to use streamR but when running this part of my code:

`requestURL <- "https://api.twitter.com/oauth/request_token" accessURL <- "https://api.twitter.com/oauth/access_token" authURL <- "https://api.twitter.com/oauth/authorize" consumerKey <- "mykey" consumerSecret <- "mysecret"

my_oauth <- OAuthFactory$new(consumerKey = consumerKey, consumerSecret = consumerSecret, requestURL = requestURL, accessURL = accessURL, authURL = authURL)

my_oauth$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))

save(my_oauth, file = "my_oauth.Rdata")`

i get "Error: Authorization Required"

and the following page shows up:

image

using the same consumerKey and consumerSecret for twitteR i don't seem to have any issues with authentication.

I googled this and it seems as though others have had this same issue but don't seem to have a clear solution.

Could somebody advise me one what the issue might be due to?

I've checked both the key and secret multiple times and am 100% sure they are correct.

Thanks

kaladevip commented 6 years ago

Same issue for me also