Class: Kaltura::Service::SessionService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::SessionService
- Defined in:
- lib/kaltura/service/session_service.rb
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
- #start(secret, user_id = '', type = 0, partner_id = -1,, expiry = 86400, privileges = '') ⇒ Object
- #start_widget_session(widget_id, expiry = 86400) ⇒ Object
Methods inherited from BaseService
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 (, expiry=86400) kparams = {} client.add_param(kparams, 'widgetId', ) client.add_param(kparams, 'expiry', expiry) perform_request('session','startWidgetSession',kparams,false) end |