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.



5028
5029
5030
# File 'lib/kaltura_client.rb', line 5028

def initialize(client)
	super(client)
end

Instance Method Details

#get_uploaded_file_token_by_file_name(file_name) ⇒ Object



5042
5043
5044
5045
5046
5047
5048
5049
5050
# File 'lib/kaltura_client.rb', line 5042

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



5032
5033
5034
5035
5036
5037
5038
5039
5040
# File 'lib/kaltura_client.rb', line 5032

def upload(file_data)
	kparams = {}
	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