Class: Kaltura::KalturaSearchService

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

Returns a new instance of KalturaSearchService.



4738
4739
4740
# File 'lib/kaltura_client.rb', line 4738

def initialize(client)
	super(client)
end

Instance Method Details

#external_login(search_source, user_name, password) ⇒ Object



4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
# File 'lib/kaltura_client.rb', line 4774

def (search_source, user_name, password)
	kparams = {}
	client.add_param(kparams, 'searchSource', search_source);
	client.add_param(kparams, 'userName', user_name);
	client.add_param(kparams, 'password', password);
	client.queue_service_action_call('search', 'externalLogin', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_media_info(search_result) ⇒ Object



4753
4754
4755
4756
4757
4758
4759
4760
4761
# File 'lib/kaltura_client.rb', line 4753

def get_media_info(search_result)
	kparams = {}
	client.add_param(kparams, 'searchResult', search_result);
	client.queue_service_action_call('search', 'getMediaInfo', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#search(search, pager = nil) ⇒ Object



4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
# File 'lib/kaltura_client.rb', line 4742

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

#search_url(media_type, url) ⇒ Object



4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
# File 'lib/kaltura_client.rb', line 4763

def search_url(media_type, url)
	kparams = {}
	client.add_param(kparams, 'mediaType', media_type);
	client.add_param(kparams, 'url', url);
	client.queue_service_action_call('search', 'searchUrl', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end