Class: Kaltura::Service::AdminUserService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::AdminUserService
- Defined in:
- lib/kaltura/service/admin_user_service.rb
Overview
AdminUserService manages details for the administrative KMC user.
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#login(email, password) ⇒ String
Gets an admin session using the admin email and password.
-
#reset_password(email) ⇒ nil
Resets admins user password and sends the new one to the admins’ email address.
-
#update_password(email, password, new_email = '', new_password = '') ⇒ Kaltura::AdminUser
Updates the admin password and email.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#login(email, password) ⇒ String
Gets an admin session using the admin email and password. This method is used for the KMC login.
61 62 63 64 65 66 |
# File 'lib/kaltura/service/admin_user_service.rb', line 61 def login(email, password) kparams = {} client.add_param(kparams, 'email', email) client.add_param(kparams, 'password', password) perform_request('adminUser','login',kparams,false) end |
#reset_password(email) ⇒ nil
Resets admins user password and sends the new one to the admins’ email address.
45 46 47 48 49 |
# File 'lib/kaltura/service/admin_user_service.rb', line 45 def reset_password(email) kparams = {} client.add_param(kparams, 'email', email) perform_request('adminUser','resetPassword',kparams,false) end |
#update_password(email, password, new_email = '', new_password = '') ⇒ Kaltura::AdminUser
Updates the admin password and email.
27 28 29 30 31 32 33 34 |
# File 'lib/kaltura/service/admin_user_service.rb', line 27 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) perform_request('adminUser','updatePassword',kparams,false) end |