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.



1496
1497
1498
# File 'lib/kaltura_client.rb', line 1496

def initialize(client)
	super(client)
end

Instance Method Details

#add(email_ip) ⇒ KalturaEmailIngestionProfile

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



1502
1503
1504
1505
1506
1507
1508
1509
1510
# File 'lib/kaltura_client.rb', line 1502

def add(email_ip)
	kparams = {}
	client.add_param(kparams, 'EmailIP', email_ip)
	client.queue_service_action_call('emailingestionprofile', 'add', 'KalturaEmailIngestionProfile', 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) ⇒ KalturaMediaEntry

add KalturaMediaEntry from email ingestion

Returns:



1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
# File 'lib/kaltura_client.rb', line 1514

def add_media_entry(media_entry, upload_token_id, email_prof_id, from_address, email_msg_id)
	kparams = {}
	client.add_param(kparams, 'mediaEntry', media_entry)
	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', 'KalturaMediaEntry', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#delete(id) ⇒ Object

Delete an existing EmailIngestionProfile

Returns:



1530
1531
1532
1533
1534
1535
1536
1537
1538
# File 'lib/kaltura_client.rb', line 1530

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) ⇒ KalturaEmailIngestionProfile

Retrieve a EmailIngestionProfile by id



1542
1543
1544
1545
1546
1547
1548
1549
1550
# File 'lib/kaltura_client.rb', line 1542

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

#get_by_email_address(email_address) ⇒ KalturaEmailIngestionProfile

Retrieve a EmailIngestionProfile by email address



1554
1555
1556
1557
1558
1559
1560
1561
1562
# File 'lib/kaltura_client.rb', line 1554

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

#update(id, email_ip) ⇒ KalturaEmailIngestionProfile

Update an existing EmailIngestionProfile



1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
# File 'lib/kaltura_client.rb', line 1566

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