Skip to content

Instantly share code, notes, and snippets.

@notch8-old
Created February 9, 2011 01:47
Show Gist options
  • Select an option

  • Save notch8-old/817734 to your computer and use it in GitHub Desktop.

Select an option

Save notch8-old/817734 to your computer and use it in GitHub Desktop.
# Certain methods require authentication. To get your Twitter OAuth credentials,
# register an app at http://dev.twitter.com/apps
Twitter.configure do |config|
config.consumer_key = YOUR_CONSUMER_KEY
config.consumer_secret = YOUR_CONSUMER_SECRET
config.oauth_token = YOUR_OAUTH_TOKEN
config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET
end
# Update your status
Twitter.update("I'm tweeting from the Twitter Ruby Gem!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment