Class: Renren2::Interface::Admin
- Defined in:
- lib/renren2/interface/admin.rb
Overview
Admin Interface
Instance Method Summary collapse
-
#get_allocation ⇒ Object
得到一个应用当天可以发送的通知和邀请的配额.
-
#text_filter(text, opts = {}) ⇒ Object
对给定的文本进行过滤,返回过滤后的文本,如果不合法,则给出错误信息.
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_allocation ⇒ Object
得到一个应用当天可以发送的通知和邀请的配额
14 15 16 |
# File 'lib/renren2/interface/admin.rb', line 14 def get_allocation post 'admin.getAllocation' end |
#text_filter(text, opts = {}) ⇒ Object
对给定的文本进行过滤,返回过滤后的文本,如果不合法,则给出错误信息
25 26 27 |
# File 'lib/renren2/interface/admin.rb', line 25 def text_filter(text, opts={}) post 'admin.textFilter', :body => {:text => text}.merge(opts) end |