Module: Teambox

Includes:
HTTParty
Defined in:
lib/teambox-client.rb,
lib/teambox-client/base.rb,
lib/teambox-client/request.rb,
lib/teambox-client/httpauth.rb

Defined Under Namespace

Classes: Base, General, HTTPAuth, InformTeambox, NotFound, RateLimitExceeded, Request, TeamboxError, Unauthorized, Unavailable

Constant Summary collapse

API_VERSION =
"1".freeze

Class Method Summary collapse

Class Method Details

.api_endpointObject



29
30
31
32
# File 'lib/teambox-client.rb', line 29

def self.api_endpoint
#    @api_endpoint ||= "api.teambox.com/#{API_VERSION}"
  @api_endpoint ||= "teambox.com"
end

.api_endpoint=(value) ⇒ Object



34
35
36
# File 'lib/teambox-client.rb', line 34

def self.api_endpoint=(value)
  @api_endpoint = value
end

.firehose(options = {}) ⇒ Object



38
39
40
# File 'lib/teambox-client.rb', line 38

def self.firehose(options = {})
  perform_get("/statuses/public_timeline.json")
end

.follower_ids(id, options = {}) ⇒ Object



54
55
56
# File 'lib/teambox-client.rb', line 54

def self.follower_ids(id,options={})
  perform_get("/followers/ids/#{id}.json")
end

.friend_ids(id, options = {}) ⇒ Object



50
51
52
# File 'lib/teambox-client.rb', line 50

def self.friend_ids(id,options={})	
  perform_get("/friends/ids/#{id}.json")
end

.list_timeline(list_owner_username, slug, query = {}) ⇒ Object

:per_page = max number of statues to get at once :page = which page of tweets you wish to get



64
65
66
# File 'lib/teambox-client.rb', line 64

def self.list_timeline(list_owner_username, slug, query = {})
  perform_get("/#{list_owner_username}/lists/#{slug}/statuses.json", :query => query)
end

.status(id, options = {}) ⇒ Object



46
47
48
# File 'lib/teambox-client.rb', line 46

def self.status(id,options={})
  perform_get("/statuses/show/#{id}.json")
end

.timeline(id, options = {}) ⇒ Object



58
59
60
# File 'lib/teambox-client.rb', line 58

def self.timeline(id, options={})
  perform_get("/statuses/user_timeline/#{id}.json", :query => options)
end

.user(id, options = {}) ⇒ Object



42
43
44
# File 'lib/teambox-client.rb', line 42

def self.user(id,options={})
  perform_get("/users/show/#{id}.json")
end