Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yrochat
Created July 15, 2014 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yrochat/a217fd9c24b655fa78b7 to your computer and use it in GitHub Desktop.
Save yrochat/a217fd9c24b655fa78b7 to your computer and use it in GitHub Desktop.
rm(list=ls())
library(twitteR)
library(httr)
# 1. Find OAuth settings for twitter:
# https://dev.twitter.com/docs/auth/oauth
oauth_endpoints("twitter")
Sys.setenv(TWITTER_CONSUMER_SECRET = "")
# 2. Register an application at https://apps.twitter.com/
# Insert your values below - if secret is omitted, it will look it up in
# the TWITTER_CONSUMER_SECRET environmental variable.
monapplicationpourROAuth <- oauth_app("twitter", key = "")
apikey<- ""
apisecret<- ""
accesstoken<- ""
accesstokensecret<- ""
setup_twitter_oauth(apikey, apisecret, accesstoken, accesstokensecret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment