Class: Kaltura::KalturaReachProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaReachProfileService
- Defined in:
- lib/kaltura_plugins/kaltura_reach_client_plugin.rb
Overview
Reach Profile Service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(reach_profile) ⇒ KalturaReachProfile
Allows you to add a partner specific reach profile.
-
#delete(id) ⇒ Object
Delete vednor profile by id.
-
#get(id) ⇒ KalturaReachProfile
Retrieve specific reach profile by id.
-
#initialize(client) ⇒ KalturaReachProfileService
constructor
A new instance of KalturaReachProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaReachProfileListResponse
List KalturaReachProfile objects.
-
#sync_credit(reach_profile_id) ⇒ KalturaReachProfile
sync vendor profile credit.
-
#update(id, reach_profile) ⇒ KalturaReachProfile
Update an existing reach profile object.
-
#update_status(id, status) ⇒ KalturaReachProfile
Update reach profile status by id.
Constructor Details
#initialize(client) ⇒ KalturaReachProfileService
Returns a new instance of KalturaReachProfileService.
1813 1814 1815 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1813 def initialize(client) super(client) end |
Instance Method Details
#add(reach_profile) ⇒ KalturaReachProfile
Allows you to add a partner specific reach profile
1819 1820 1821 1822 1823 1824 1825 1826 1827 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1819 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
1831 1832 1833 1834 1835 1836 1837 1838 1839 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1831 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
1843 1844 1845 1846 1847 1848 1849 1850 1851 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1843 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
1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1855 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
1868 1869 1870 1871 1872 1873 1874 1875 1876 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1868 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
1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1880 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
1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1893 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 |