Class: Kaltura::Service::SessionService

Inherits:
BaseService show all
Defined in:
lib/kaltura/service/session_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

#start(secret, user_id = '', type = 0, partner_id = -1,, expiry = 86400, privileges = '') ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/kaltura/service/session_service.rb', line 5

def start(secret, user_id='', type=0, partner_id=-1, expiry=86400, privileges='')
	kparams = {}
	client.add_param(kparams, 'secret', secret)
	client.add_param(kparams, 'userId', user_id)
	client.add_param(kparams, 'type', type)
	client.add_param(kparams, 'partnerId', partner_id)
	client.add_param(kparams, 'expiry', expiry)
	client.add_param(kparams, 'privileges', privileges)
	perform_request('session','start',kparams,false)
end

#start_widget_session(widget_id, expiry = 86400) ⇒ Object



16
17
18
19
20
21
# File 'lib/kaltura/service/session_service.rb', line 16

def start_widget_session(widget_id, expiry=86400)
	kparams = {}
	client.add_param(kparams, 'widgetId', widget_id)
	client.add_param(kparams, 'expiry', expiry)
	perform_request('session','startWidgetSession',kparams,false)
end