Class: Weibo::Api::V2::Common
- Inherits:
-
Base
- Object
- Base
- Weibo::Api::V2::Common
show all
- Defined in:
- lib/weibo_focus/api/v2/common.rb
Instance Method Summary
collapse
Methods inherited from Base
#hashie, #initialize
Instance Method Details
#code_to_location(codes, opt = {}) ⇒ Object
6
7
8
|
# File 'lib/weibo_focus/api/v2/common.rb', line 6
def code_to_location(codes, opt={})
hashie get("common/code_to_location.json", :params => {:codes => codes}.merge(opt))
end
|
#get_city(province, opt = {}) ⇒ Object
10
11
12
|
# File 'lib/weibo_focus/api/v2/common.rb', line 10
def get_city(province, opt={})
hashie get("common/get_city.json", :params => {:province => province}.merge(opt))
end
|
#get_country(opt = {}) ⇒ Object
18
19
20
|
# File 'lib/weibo_focus/api/v2/common.rb', line 18
def get_country(opt={})
hashie get("common/get_country.json", :params => opt)
end
|
#get_province(country, opt = {}) ⇒ Object
14
15
16
|
# File 'lib/weibo_focus/api/v2/common.rb', line 14
def get_province(country, opt={})
hashie get("common/get_province.json", :params => {:country => country}.merge(opt))
end
|
#get_timezone(opt = {}) ⇒ Object
22
23
24
|
# File 'lib/weibo_focus/api/v2/common.rb', line 22
def get_timezone(opt={})
hashie get("common/get_timezone.json", :params => opt)
end
|