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 vednor 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.
1631 1632 1633 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1631 def initialize(client) super(client) end |
Instance Method Details
#add(reach_profile) ⇒ KalturaReachProfile
Allows you to add a partner specific reach profile
1637 1638 1639 1640 1641 1642 1643 1644 1645 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1637 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
1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1649 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
1661 1662 1663 1664 1665 1666 1667 1668 1669 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1661 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
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1673 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 vednor profile credit
1686 1687 1688 1689 1690 1691 1692 1693 1694 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1686 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
1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1698 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
1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1711 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 |