Skip to content

Instantly share code, notes, and snippets.

@ElCep
Last active January 3, 2016 08:49
Show Gist options
  • Save ElCep/8438427 to your computer and use it in GitHub Desktop.
Save ElCep/8438427 to your computer and use it in GitHub Desktop.
Script r for a twitter validation
reqURL = "https://api.twitter.com/oauth/request_token"
accessURL = "http://api.twitter.com/oauth/access_token"
authURL = "http://api.twitter.com/oauth/authorize"
consumerKey = "nP9JdRBlToVZ4xXrNeUbw"
consumerSecret = "KsK7qsu13cEUXhlpUSSo4UGHsoSTuBvwVPqzKAb6DqU"
library(twitteR)
twitCred = OAuthFactory$new(consumerKey=consumerKey,consumerSecret=consumerSecret,requestURL=reqURL,accessURL=accessURL,authURL=authURL)
twitCred$handshake()
save(twitCred, file="../cred.RData")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment