Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jeffgswanson
Last active October 9, 2017 15:32
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 jeffgswanson/04bc9aa38a1037b93c1ef16982011eec to your computer and use it in GitHub Desktop.
Save jeffgswanson/04bc9aa38a1037b93c1ef16982011eec to your computer and use it in GitHub Desktop.
Access Twitter API to use twitterR
# Access Twitter API using twitterR
# Need to have a Twitter account and can access keys, secrets, tokens by creating an app at apps.twitter.com
# Include the single quotes around your access codes
tw_consumer_key <- 'your_consumer_key'
tw_consumer_secret <- 'your_consumer_secret'
tw_access_token <- 'your_access_token'
tw_access_secret <- 'your_access_secret'
setup_twitter_oauth(tw_consumer_key, tw_consumer_secret, tw_access_token, tw_access_secret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment