Created
October 2, 2013 11:54
-
-
Save bdryanovski/6792564 to your computer and use it in GitHub Desktop.
Read public twitter feed, with Ruby.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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