Skip to content

Commit 73e1780

Browse files
committed
getting a twitter timeline to use with timetric
1 parent a375699 commit 73e1780

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

timetric/demo.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'rubygems'
2+
require 'grackle'
3+
4+
# Use Grackle to get a timeline of tweets from an individual user
5+
client = Grackle::Client.new
6+
7+
1.upto(20) do |page|
8+
tweets =
9+
client.statuses.user_timeline?(:screen_name=>'chrislowis',
10+
:page => page)
11+
end

0 commit comments

Comments
 (0)