Class: Kaltura::Service::PartnerService
Instance Attribute Summary
Attributes inherited from BaseService
#client
Instance Method Summary
collapse
Methods inherited from BaseService
#initialize, #perform_request
Instance Method Details
#get_info ⇒ Object
27
28
29
30
|
# File 'lib/kaltura/service/partner_service.rb', line 27
def get_info()
kparams = {}
perform_request('partner','getInfo',kparams,false)
end
|
#get_secrets(partner_id, admin_email, cms_password) ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/kaltura/service/partner_service.rb', line 19
def get_secrets(partner_id, admin_email, cms_password)
kparams = {}
client.add_param(kparams, 'partnerId', partner_id)
client.add_param(kparams, 'adminEmail', admin_email)
client.add_param(kparams, 'cmsPassword', cms_password)
perform_request('partner','getSecrets',kparams,false)
end
|
#get_usage(year = '', month = 1, resolution = 'days') ⇒ Object
32
33
34
35
36
37
38
|
# File 'lib/kaltura/service/partner_service.rb', line 32
def get_usage(year='', month=1, resolution='days')
kparams = {}
client.add_param(kparams, 'year', year)
client.add_param(kparams, 'month', month)
client.add_param(kparams, 'resolution', resolution)
perform_request('partner','getUsage',kparams,false)
end
|
#register(partner, cms_password = '') ⇒ Object
5
6
7
8
9
10
|
# File 'lib/kaltura/service/partner_service.rb', line 5
def register(partner, cms_password='')
kparams = {}
client.add_param(kparams, 'partner', partner)
client.add_param(kparams, 'cmsPassword', cms_password)
perform_request('partner','register',kparams,false)
end
|
#update(partner, allow_empty = false) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/kaltura/service/partner_service.rb', line 12
def update(partner, allow_empty=false)
kparams = {}
client.add_param(kparams, 'partner', partner)
client.add_param(kparams, 'allowEmpty', allow_empty)
perform_request('partner','update',kparams,false)
end
|