Class: PPC::API::Qihu::Rank
- Inherits:
-
PPC::API::Qihu
- Object
- PPC::API::Qihu
- PPC::API::Qihu::Rank
- Defined in:
- lib/ppc/api/qihu/rank.rb
Constant Summary collapse
- Service =
'tool'- RankType =
{ id: :id, group_id: :groupId, anchor: :text, url: :link, image: :image, status: :status, }
Class Method Summary collapse
Methods inherited from PPC::API::Qihu
process, request_http_body, request_http_header, request_uri
Methods included from PPC::API
#make_type, #process, #request, #request_http_body, #request_http_header, #request_uri, #reverse_type
Class Method Details
.getRank(auth, region, queryInfo) ⇒ Object
17 18 19 20 21 |
# File 'lib/ppc/api/qihu/rank.rb', line 17 def self.getRank( auth, region, queryInfo ) body = {'region'=> region, 'queryInfo' => queryInfo} response = request( auth, Service, 'realTimeQueryResult', body) process( response, "" ){|x| x["left"]["ranking"]} end |