Skip to content

Instantly share code, notes, and snippets.

@omps
Created April 24, 2016 10:04
Show Gist options
  • Save omps/945d07112e72b112bff5ff331e9dd6b2 to your computer and use it in GitHub Desktop.
Save omps/945d07112e72b112bff5ff331e9dd6b2 to your computer and use it in GitHub Desktop.
rake twitter config
# Twitter config (for tweeting posts)
client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN""
config.access_token_secret = "YOUR_ACCESS_TOKEN_SECRET
end
# MAKE SURE THERE IS A TRAILING SLASH, otherwise the linking won't work
blog_url = "YOUR_BLOG_URL/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment