Class: Weibo::Api::V2::Suggestions
- Inherits:
-
Base
- Object
- Base
- Weibo::Api::V2::Suggestions
show all
- Defined in:
- lib/weibo_focus/api/v2/suggestions.rb
Instance Method Summary
collapse
Methods inherited from Base
#hashie, #initialize
Instance Method Details
#favorites_hot(opt = {}) ⇒ Object
33
34
35
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 33
def favorites_hot(opt={})
hashie get("suggestions/favorites/hot.json", :params => opt)
end
|
#statuses_hot(type, is_pic, opt = {}) ⇒ Object
20
21
22
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 20
def statuses_hot(type, is_pic, opt={})
hashie get("suggestions/statuses/hot.json", :params => {:type => type, :is_pic => is_pic}.merge(opt))
end
|
#statuses_reorder(section, opt = {}) ⇒ Object
25
26
27
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 25
def statuses_reorder(section, opt={})
hashie get("suggestions/statuses/reorder.json", :params => {:section => section}.merge(opt))
end
|
#statuses_reorder_ids(section, opt = {}) ⇒ Object
29
30
31
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 29
def statuses_reorder_ids(section, opt={})
hashie get("suggestions/statuses/reorder/ids.json", :params => {:section => section}.merge(opt))
end
|
#users_by_status(content, opt = {}) ⇒ Object
15
16
17
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 15
def users_by_status(content, opt={})
hashie get("suggestions/users/by_status.json", :params => {:content => CGI::escape(content)}.merge(opt))
end
|
#users_hot(opt = {}) ⇒ Object
7
8
9
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 7
def users_hot(opt={})
hashie get("suggestions/users/hot.json", :params => opt)
end
|
#users_may_interested(opt = {}) ⇒ Object
11
12
13
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 11
def users_may_interested(opt={})
hashie get("suggestions/users/may_interested.json", :params => opt)
end
|
#users_not_interested(uid, opt = {}) ⇒ Object
38
39
40
|
# File 'lib/weibo_focus/api/v2/suggestions.rb', line 38
def users_not_interested(uid, opt={})
hashie post("suggestions/users/not_interested.json", :params => {:uid => uid}.merge(opt))
end
|