Method: Weibo2::Interface::Search#users

Defined in:
lib/weibo2/interface/search.rb

#users(opts = {}) ⇒ Object

通过关键词搜索用户 [Privilege]

Parameters:

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :q (String)

    搜索的关键字

  • :snick (int)

    搜索范围是否包含昵称,0:不包含、1:包含

  • :sdomain (int)

    搜索范围是否包含个性域名,0:不包含、1:包含

  • :sintro (int)

    搜索范围是否包含简介,0:不包含、1:包含

  • :stag (int)

    搜索范围是否包含标签,0:不包含、1:包含

  • :province (int)

    搜索的省份范围,省份ID

  • :city (int)

    搜索的城市范围,城市ID

  • :gender (String)

    搜索的性别范围,m:男、f:女

  • :comorsch (String)

    搜索的公司学校名称

  • :sort (int)

    排序方式,1:按更新时间、2:按粉丝数,默认为1

  • :count (int)

    单页返回的记录条数,默认为10

  • :page (int)

    返回结果的页码,默认为1

  • :base_app (int)

    是否只获取当前应用的数据。0为否(所有数据),1为是(仅当前应用),默认为0

See Also:



152
153
154
# File 'lib/weibo2/interface/search.rb', line 152

def users(opts={})
  get 'search/users.json', :params => opts
end