Class: Renren2::Interface::Requests

Inherits:
Base
  • Object
show all
Defined in:
lib/renren2/interface/requests.rb

Overview

Requests Interface

Instance Method Summary collapse

Methods inherited from Base

#check_scope, #get, #initialize, #post, #request

Constructor Details

This class inherits a constructor from Renren2::Interface::Base

Instance Method Details

#get_tag_requests(opts = {}) ⇒ Object

Note:

require “read_user_request” scope

获取当前用户的圈人请求列表,在调用之前,应用必须获取到用户的授权

Parameters:

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

Options Hash (opts):

  • :page (int)

    支持分页,指定页号,页号从1开始,默认值为1

  • :count (int)

    支持分页,每一页记录数,默认值为20

See Also:



17
18
19
20
# File 'lib/renren2/interface/requests.rb', line 17

def get_tag_requests(opts={})
  check_scope "read_user_request"
  post 'requests.getTagRequests', :body => opts
end