Class: Weibo::Api::V2::Users

Inherits:
Base
  • Object
show all
Defined in:
lib/weibo_focus/api/v2/users.rb

Instance Method Summary collapse

Methods inherited from Base

#hashie, #initialize

Constructor Details

This class inherits a constructor from Weibo::Api::V2::Base

Instance Method Details

#counts(uids, opt = {}) ⇒ Object



22
23
24
# File 'lib/weibo_focus/api/v2/users.rb', line 22

def counts(uids, opt={})
  hashie get("users/counts.json", :params => {:uids => uids}.merge(opt))
end

#domain_show(domain, opt = {}) ⇒ Object



18
19
20
# File 'lib/weibo_focus/api/v2/users.rb', line 18

def domain_show(domain, opt={})
  hashie get("users/domain_show.json", :params => {:domain => domain}.merge(opt))
end

#show(opt = {}) ⇒ Object



6
7
8
# File 'lib/weibo_focus/api/v2/users.rb', line 6

def show(opt={})
  hashie get("users/show.json", :params => opt)
end

#show_by_screen_name(screen_name) ⇒ Object



14
15
16
# File 'lib/weibo_focus/api/v2/users.rb', line 14

def show_by_screen_name(screen_name)
  show({"screen_name" => screen_name})
end

#show_by_uid(uid) ⇒ Object



10
11
12
# File 'lib/weibo_focus/api/v2/users.rb', line 10

def show_by_uid(uid)
  show({"uid" => uid.to_i})
end