Class: Kaltura::KalturaReachProfileService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_reach_client_plugin.rb

Overview

Reach Profile Service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaReachProfileService

Returns a new instance of KalturaReachProfileService.



1931
1932
1933
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1931

def initialize(client)
	super(client)
end

Instance Method Details

#add(reach_profile) ⇒ KalturaReachProfile

Allows you to add a partner specific reach profile

Returns:



1937
1938
1939
1940
1941
1942
1943
1944
1945
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1937

def add(reach_profile)
	kparams = {}
	client.add_param(kparams, 'reachProfile', reach_profile)
	client.queue_service_action_call('reach_reachprofile', 'add', 'KalturaReachProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#delete(id) ⇒ Object

Delete vednor profile by id

Returns:



1949
1950
1951
1952
1953
1954
1955
1956
1957
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1949

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

#get(id) ⇒ KalturaReachProfile

Retrieve specific reach profile by id

Returns:



1961
1962
1963
1964
1965
1966
1967
1968
1969
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1961

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

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaReachProfileListResponse

List KalturaReachProfile objects



1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1973

def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	client.add_param(kparams, 'pager', pager)
	client.queue_service_action_call('reach_reachprofile', 'list', 'KalturaReachProfileListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#sync_credit(reach_profile_id) ⇒ KalturaReachProfile

sync vendor profile credit

Returns:



1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1986

def sync_credit(reach_profile_id)
	kparams = {}
	client.add_param(kparams, 'reachProfileId', reach_profile_id)
	client.queue_service_action_call('reach_reachprofile', 'syncCredit', 'KalturaReachProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(id, reach_profile) ⇒ KalturaReachProfile

Update an existing reach profile object

Returns:



1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1998

def update(id, reach_profile)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'reachProfile', reach_profile)
	client.queue_service_action_call('reach_reachprofile', 'update', 'KalturaReachProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update_status(id, status) ⇒ KalturaReachProfile

Update reach profile status by id

Returns:



2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 2011

def update_status(id, status)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'status', status)
	client.queue_service_action_call('reach_reachprofile', 'updateStatus', 'KalturaReachProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end