Class: Weibo::Api::V2::Search
- Inherits:
-
Base
- Object
- Base
- Weibo::Api::V2::Search
show all
- Defined in:
- lib/weibo_focus/api/v2/search.rb
Instance Method Summary
collapse
Methods inherited from Base
#hashie, #initialize
Instance Method Details
#suggestions_apps(q, opt = {}) ⇒ Object
23
24
25
|
# File 'lib/weibo_focus/api/v2/search.rb', line 23
def suggestions_apps(q, opt={})
hashie get("search/suggestions/apps.json", :params => {:q => CGI::escape(q)}.merge(opt))
end
|
#suggestions_at_users(q, type, opt = {}) ⇒ Object
27
28
29
|
# File 'lib/weibo_focus/api/v2/search.rb', line 27
def suggestions_at_users(q, type, opt={})
hashie get("search/suggestions/at_users.json", :params => {:q => CGI::escape(q), :type => type}.merge(opt))
end
|
#suggestions_companies(q, opt = {}) ⇒ Object
19
20
21
|
# File 'lib/weibo_focus/api/v2/search.rb', line 19
def suggestions_companies(q, opt={})
hashie get("search/suggestions/companies.json", :params => {:q => CGI::escape(q)}.merge(opt))
end
|
#suggestions_schools(q, opt = {}) ⇒ Object
15
16
17
|
# File 'lib/weibo_focus/api/v2/search.rb', line 15
def suggestions_schools(q, opt={})
hashie get("search/suggestions/schools.json", :params => {:q => CGI::escape(q)}.merge(opt))
end
|
#suggestions_statuses(q, opt = {}) ⇒ Object
11
12
13
|
# File 'lib/weibo_focus/api/v2/search.rb', line 11
def suggestions_statuses(q, opt={})
hashie get("search/suggestions/statuses.json", :params => {:q => CGI::escape(q)}.merge(opt))
end
|
#suggestions_users(q, opt = {}) ⇒ Object
7
8
9
|
# File 'lib/weibo_focus/api/v2/search.rb', line 7
def suggestions_users(q, opt={})
hashie get("search/suggestions/users.json", :params => {:q => CGI::escape(q)}.merge(opt))
end
|
#topics(q, opt = {}) ⇒ Object
31
32
33
|
# File 'lib/weibo_focus/api/v2/search.rb', line 31
def topics(q, opt={})
hashie get("search/topics.json", :params => {:q => CGI::escape(q)}.merge(opt))
end
|