Class: Kaltura::KalturaAdminUserService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaAdminUserService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#initialize(client) ⇒ KalturaAdminUserService
constructor
A new instance of KalturaAdminUserService.
- #login(email, password) ⇒ Object
- #reset_password(email) ⇒ Object
- #update_password(email, password, new_email = '', new_password = '') ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaAdminUserService
Returns a new instance of KalturaAdminUserService.
3375 3376 3377 |
# File 'lib/kaltura_client.rb', line 3375 def initialize(client) super(client) end |
Instance Method Details
#login(email, password) ⇒ Object
3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 |
# File 'lib/kaltura_client.rb', line 3402 def login(email, password) kparams = {} client.add_param(kparams, 'email', email); client.add_param(kparams, 'password', password); client.queue_service_action_call('adminUser', 'login', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#reset_password(email) ⇒ Object
3392 3393 3394 3395 3396 3397 3398 3399 3400 |
# File 'lib/kaltura_client.rb', line 3392 def reset_password(email) kparams = {} client.add_param(kparams, 'email', email); client.queue_service_action_call('adminUser', 'resetPassword', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update_password(email, password, new_email = '', new_password = '') ⇒ Object
3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 |
# File 'lib/kaltura_client.rb', line 3379 def update_password(email, password, new_email='', new_password='') kparams = {} client.add_param(kparams, 'email', email); client.add_param(kparams, 'password', password); client.add_param(kparams, 'newEmail', new_email); client.add_param(kparams, 'newPassword', new_password); client.queue_service_action_call('adminUser', 'updatePassword', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |