Skip to content

Instantly share code, notes, and snippets.

@bdryanovski
Created October 2, 2013 11:54
Show Gist options
  • Select an option

  • Save bdryanovski/6792564 to your computer and use it in GitHub Desktop.

Select an option

Save bdryanovski/6792564 to your computer and use it in GitHub Desktop.
Read public twitter feed, with Ruby.
#
# gem install twitter
#
require 'twitter'
#
# Create new Twitter Application used for Authentication
# https://dev.twitter.com/apps/new
#
Twitter.configure do |c|
c.consumer_key = 'tjGw1nzYJWIMAvuhNAzd9'
c.consumer_secret = 'keBWFZrChx1UFxt1YzXxSn9FuWcFmwKnb2laIkHGl'
c.oauth_token = '375704816-W4455rNmtE85mlTgc7OguZCuW0C9aiLFZsnBA9X'
c.oauth_token_secret = 'E8xA0C6iCckBgPPOMiJ1BAeeNADCU1zOqQnpIrr0x'
end
#
# Read public timeline
#
p Twitter.user_timeline("bdryanovski")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment