Class: Kaltura::KalturaUploadService

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

Returns a new instance of KalturaUploadService.



13554
13555
13556
# File 'lib/kaltura_client.rb', line 13554

def initialize(client)
	super(client)
end

Instance Method Details

#get_uploaded_file_token_by_file_name(file_name) ⇒ Object



13569
13570
13571
13572
13573
13574
13575
13576
13577
# File 'lib/kaltura_client.rb', line 13569

def get_uploaded_file_token_by_file_name(file_name)
	kparams = {}
	client.add_param(kparams, 'fileName', file_name);
	client.queue_service_action_call('upload', 'getUploadedFileTokenByFileName', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#upload(file_data) ⇒ Object



13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
# File 'lib/kaltura_client.rb', line 13558

def upload(file_data)
	kparams = {}
	# The file data
	client.add_param(kparams, 'fileData', file_data);
	client.queue_service_action_call('upload', 'upload', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end