Skip to content

Commit

Permalink
Added unauthenticated timeline method just for @mtodd
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Jan 13, 2010
1 parent 0a7ac4a commit dc26a0c
Show file tree
Hide file tree
Showing 4 changed files with 725 additions and 1 deletion.
2 changes: 2 additions & 0 deletions History
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.8.1 - January 12, 2010
* Added unauthenticated timeline method just for @mtodd
0.8.0 - December 18, 2009
* Made API endpoint configurable to use services like Tumblr
0.7.11 - December 16, 2009
Expand Down
5 changes: 5 additions & 0 deletions lib/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def self.friend_ids(id)
def self.follower_ids(id)
HTTParty.get("http://twitter.com/followers/ids/#{id}.json", :format => :json)
end

def self.timeline(id, options={})
response = HTTParty.get("http://twitter.com/statuses/user_timeline/#{id}.json", :query => options, :format => :json)
response.map{|tweet| Hashie::Mash.new tweet}
end
end

directory = File.expand_path(File.dirname(__FILE__))
Expand Down
Loading

0 comments on commit dc26a0c

Please sign in to comment.