Class: Kaltura::KalturaEmailIngestionProfileService

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

Overview

EmailIngestionProfile service lets you manage email ingestion profile records

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaEmailIngestionProfileService

Returns a new instance of KalturaEmailIngestionProfileService.



10428
10429
10430
# File 'lib/kaltura_client.rb', line 10428

def initialize(client)
	super(client)
end

Instance Method Details

#add(email_ip) ⇒ Object

EmailIngestionProfile Add action allows you to add a EmailIngestionProfile to Kaltura DB



10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
# File 'lib/kaltura_client.rb', line 10434

def add(email_ip)
	kparams = {}
	# Mandatory input parameter of type KalturaEmailIngestionProfile
	client.add_param(kparams, 'EmailIP', email_ip);
	client.queue_service_action_call('emailingestionprofile', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#add_media_entry(media_entry, upload_token_id, email_prof_id, from_address, email_msg_id) ⇒ Object

add KalturaMediaEntry from email ingestion



10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
# File 'lib/kaltura_client.rb', line 10496

def add_media_entry(media_entry, upload_token_id, email_prof_id, from_address, email_msg_id)
	kparams = {}
	# Media entry metadata
	client.add_param(kparams, 'mediaEntry', media_entry);
	# Upload token id
	client.add_param(kparams, 'uploadTokenId', upload_token_id);
	client.add_param(kparams, 'emailProfId', email_prof_id);
	client.add_param(kparams, 'fromAddress', from_address);
	client.add_param(kparams, 'emailMsgId', email_msg_id);
	client.queue_service_action_call('emailingestionprofile', 'addMediaEntry', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object

Delete an existing EmailIngestionProfile



10484
10485
10486
10487
10488
10489
10490
10491
10492
# File 'lib/kaltura_client.rb', line 10484

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('emailingestionprofile', 'delete', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(id) ⇒ Object

Retrieve a EmailIngestionProfile by id



10459
10460
10461
10462
10463
10464
10465
10466
10467
# File 'lib/kaltura_client.rb', line 10459

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('emailingestionprofile', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_by_email_address(email_address) ⇒ Object

Retrieve a EmailIngestionProfile by email address



10447
10448
10449
10450
10451
10452
10453
10454
10455
# File 'lib/kaltura_client.rb', line 10447

def get_by_email_address(email_address)
	kparams = {}
	client.add_param(kparams, 'emailAddress', email_address);
	client.queue_service_action_call('emailingestionprofile', 'getByEmailAddress', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update(id, email_ip) ⇒ Object

Update an existing EmailIngestionProfile



10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
# File 'lib/kaltura_client.rb', line 10471

def update(id, email_ip)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'EmailIP', email_ip);
	client.queue_service_action_call('emailingestionprofile', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end