0

I'm having a very difficult time getting my OAuth to work so that I can make 350 calls per hour to twitter's API.

I have reviewed several other threads with similar topics, but my problem appears to be different:

twitteR and ROAuth R Packages install

twitteR and ROAuth

TwitteR, ROAuth and Windows: register OK, but certificate verify failed

my code is as follows:

    rm(list=ls())
    library("twitteR")
    library("ROAuth")
    requestURL <- "https://api.twitter.com/oauth/request_token"
    accessURL = "https://api.twitter.com/oauth/access_token"
    authURL = "https://api.twitter.com/oauth/authorize"
    cKey = "__________"
    cSecret = "__________"
    Cred <- OAuthFactory$new(consumerKey=cKey,
                consumerSecret=cSecret,
                requestURL=requestURL,
                accessURL=accessURL,
                authURL=authURL)
    Cred$handshake()
    registerTwitterOAuth(Cred)

Despite trying many different versions of the same code, resetting my API key, and even registering a new account and retrieiving a new API key, i continually return this error:

    Error in Cred$handshake() : 
    Invalid response from site, please check your consumerKey and consumerSecret and try again.

There is absolutely no way this could be an issue with my key/secret. Any other ideas?

Community
  • 1
  • 1
brianabelson
  • 131
  • 1
  • 2
  • 6

1 Answers1

0

Problem Solved:

I had already downloaded this new version of ROAuth (http://lists.hexdump.org/pipermail/twitter-users-hexdump.org/2012-February/000059.html) but had not restarted R! duh!

brianabelson
  • 131
  • 1
  • 2
  • 6