Class: Kaltura::Service::EmailIngestionProfileService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/kaltura/service/email_ingestion_profile_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#client

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #perform_request

Constructor Details

This class inherits a constructor from Kaltura::Service::BaseService

Instance Method Details

#add(email_ip) ⇒ Object



5
6
7
8
9
# File 'lib/kaltura/service/email_ingestion_profile_service.rb', line 5

def add(email_ip)
	kparams = {}
	client.add_param(kparams, 'EmailIP', email_ip)
	perform_request('EmailIngestionProfile','add',kparams,false)
end

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



36
37
38
39
40
41
42
43
44
# File 'lib/kaltura/service/email_ingestion_profile_service.rb', line 36

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)
	perform_request('EmailIngestionProfile','addMediaEntry',kparams,false)
end

#delete(id) ⇒ Object



30
31
32
33
34
# File 'lib/kaltura/service/email_ingestion_profile_service.rb', line 30

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id)
	perform_request('EmailIngestionProfile','delete',kparams,false)
end

#get(id) ⇒ Object



17
18
19
20
21
# File 'lib/kaltura/service/email_ingestion_profile_service.rb', line 17

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id)
	perform_request('EmailIngestionProfile','get',kparams,false)
end

#get_by_email_address(email_address) ⇒ Object



11
12
13
14
15
# File 'lib/kaltura/service/email_ingestion_profile_service.rb', line 11

def get_by_email_address(email_address)
	kparams = {}
	client.add_param(kparams, 'emailAddress', email_address)
	perform_request('EmailIngestionProfile','getByEmailAddress',kparams,false)
end

#update(id, email_ip) ⇒ Object



23
24
25
26
27
28
# File 'lib/kaltura/service/email_ingestion_profile_service.rb', line 23

def update(id, email_ip)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'EmailIP', email_ip)
	perform_request('EmailIngestionProfile','update',kparams,false)
end