-
-
Save yokohama/3798561 to your computer and use it in GitHub Desktop.
自分のタイムラインを画面に表示させてみる
This file contains 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
# | |
# 自分のタイムラインの内容をとってきて表示させてみるサンプルコード | |
# | |
require 'rubygems' | |
require 'twitter' | |
require 'pp' | |
Twitter.configure do |config| | |
config.consumer_key = 'Consumer Key' | |
config.consumer_secret = 'Consumer secret' | |
config.oauth_token = 'Access token' | |
config.oauth_token_secret = 'Access token secret' | |
end | |
pp Twitter.home_timeline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment