Class: WeiboOAuth2::Api::V2::Common

Inherits:
Base
  • Object
show all
Defined in:
lib/weibo_2/api/v2/common.rb

Instance Method Summary collapse

Methods inherited from Base

#hashie, #initialize

Constructor Details

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

Instance Method Details

#code_to_location(codes, opt = {}) ⇒ Object

read interfaces



6
7
8
# File 'lib/weibo_2/api/v2/common.rb', line 6

def code_to_location(codes, opt={})
  hashie get("common/code_to_location", :params => {:codes => codes}.merge(opt))
end

#get_city(province, opt = {}) ⇒ Object



10
11
12
# File 'lib/weibo_2/api/v2/common.rb', line 10

def get_city(province, opt={})
  hashie get("common/send", :params => {:province => province}.merge(opt))
end

#get_country(opt = {}) ⇒ Object



18
19
20
# File 'lib/weibo_2/api/v2/common.rb', line 18

def get_country(opt={})
  hashie get("common/send", :params => {:uids => uids, :tpl_id => tpl_id}.merge(opt))
end

#get_province(country, opt = {}) ⇒ Object



14
15
16
# File 'lib/weibo_2/api/v2/common.rb', line 14

def get_province(country, opt={})
  hashie get("common/send", :params => {:country => country}.merge(opt))
end

#get_timezone(opt = {}) ⇒ Object



22
23
24
# File 'lib/weibo_2/api/v2/common.rb', line 22

def get_timezone(opt={})
  hashie get("common/send", :params => {:uids => uids, :tpl_id => tpl_id}.merge(opt))
end