Module: Twitter
- Defined in:
- lib/twitter.rb,
lib/twitter/base.rb,
lib/twitter/oauth.rb,
lib/twitter/search.rb,
lib/twitter/trends.rb,
lib/twitter/request.rb,
lib/twitter/httpauth.rb
Defined Under Namespace
Classes: Base, General, HTTPAuth, InformTwitter, NotFound, OAuth, RateLimitExceeded, Request, Search, Trends, TwitterError, Unauthorized, Unavailable
Class Method Summary
collapse
Class Method Details
.firehose ⇒ Object
26
27
28
29
|
# File 'lib/twitter.rb', line 26
def self.firehose
response = HTTParty.get('http://twitter.com/statuses/public_timeline.json', :format => :json)
response.map { || Mhash.new() }
end
|
.follower_ids(id) ⇒ Object
45
46
47
|
# File 'lib/twitter.rb', line 45
def self.follower_ids(id)
HTTParty.get("http://twitter.com/followers/ids/#{id}.json", :format => :json)
end
|
.friend_ids(id) ⇒ Object
41
42
43
|
# File 'lib/twitter.rb', line 41
def self.friend_ids(id)
HTTParty.get("http://twitter.com/friends/ids/#{id}.json", :format => :json)
end
|
.status(id) ⇒ Object
36
37
38
39
|
# File 'lib/twitter.rb', line 36
def self.status(id)
response = HTTParty.get("http://twitter.com/statuses/show/#{id}.json", :format => :json)
Mhash.new(response)
end
|
.user(id) ⇒ Object
31
32
33
34
|
# File 'lib/twitter.rb', line 31
def self.user(id)
response = HTTParty.get("http://twitter.com/users/show/#{id}.json", :format => :json)
Mhash.new(response)
end
|