Class: Kaltura::Service::AdminUserService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::AdminUserService
- Defined in:
- lib/kaltura/service/admin_user_service.rb
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
- #login(email, password) ⇒ Object
- #reset_password(email) ⇒ Object
- #update_password(email, password, new_email = '', new_password = '') ⇒ Object
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#login(email, password) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/kaltura/service/admin_user_service.rb', line 20 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) ⇒ Object
14 15 16 17 18 |
# File 'lib/kaltura/service/admin_user_service.rb', line 14 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 = '') ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/kaltura/service/admin_user_service.rb', line 5 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 |