Class: Kaltura::Service::UserService

Inherits:
BaseService show all
Defined in:
lib/kaltura/service/user_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#client

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #perform_request

Constructor Details

This class inherits a constructor from Kaltura::Service::BaseService

Instance Method Details

#add(user) ⇒ Object



5
6
7
8
9
# File 'lib/kaltura/service/user_service.rb', line 5

def add(user)
	kparams = {}
	client.add_param(kparams, 'user', user)
	perform_request('user','add',kparams,false)
end

#delete(user_id) ⇒ Object



24
25
26
27
28
# File 'lib/kaltura/service/user_service.rb', line 24

def delete(user_id)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	perform_request('user','delete',kparams,false)
end

#get(user_id) ⇒ Object



18
19
20
21
22
# File 'lib/kaltura/service/user_service.rb', line 18

def get(user_id)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	perform_request('user','get',kparams,false)
end

#list(filter = nil, pager = nil) ⇒ Object



30
31
32
33
34
35
# File 'lib/kaltura/service/user_service.rb', line 30

def list(filter=nil, pager=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	client.add_param(kparams, 'pager', pager)
	perform_request('user','list',kparams,false)
end

#notify_ban(user_id) ⇒ Object



37
38
39
40
41
# File 'lib/kaltura/service/user_service.rb', line 37

def notify_ban(user_id)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	perform_request('user','notifyBan',kparams,false)
end

#update(user_id, user) ⇒ Object



11
12
13
14
15
16
# File 'lib/kaltura/service/user_service.rb', line 11

def update(user_id, user)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	client.add_param(kparams, 'user', user)
	perform_request('user','update',kparams,false)
end