Skip to content

Error: Authorization Required #12

@CaptainKatsuura

Description

@CaptainKatsuura

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions