Class: Kaltura::KalturaPartnerService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaPartnerService

Returns a new instance of KalturaPartnerService.



4505
4506
4507
# File 'lib/kaltura_client.rb', line 4505

def initialize(client)
	super(client)
end

Instance Method Details

#get_infoObject



4543
4544
4545
4546
4547
4548
4549
4550
# File 'lib/kaltura_client.rb', line 4543

def get_info()
	kparams = {}
	client.queue_service_action_call('partner', 'getInfo', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_secrets(partner_id, admin_email, cms_password) ⇒ Object



4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
# File 'lib/kaltura_client.rb', line 4531

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);
	client.queue_service_action_call('partner', 'getSecrets', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_usage(year = '', month = 1, resolution = 'days') ⇒ Object



4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
# File 'lib/kaltura_client.rb', line 4552

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);
	client.queue_service_action_call('partner', 'getUsage', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#register(partner, cms_password = '') ⇒ Object



4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
# File 'lib/kaltura_client.rb', line 4509

def register(partner, cms_password='')
	kparams = {}
	client.add_param(kparams, 'partner', partner);
	client.add_param(kparams, 'cmsPassword', cms_password);
	client.queue_service_action_call('partner', 'register', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update(partner, allow_empty = false) ⇒ Object



4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
# File 'lib/kaltura_client.rb', line 4520

def update(partner, allow_empty=false)
	kparams = {}
	client.add_param(kparams, 'partner', partner);
	client.add_param(kparams, 'allowEmpty', allow_empty);
	client.queue_service_action_call('partner', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end