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.
1636 1637 1638 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1636 def initialize(client) super(client) end |
Instance Method Details
#add(reach_profile) ⇒ KalturaReachProfile
Allows you to add a partner specific reach profile
1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1642 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
1654 1655 1656 1657 1658 1659 1660 1661 1662 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1654 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
1666 1667 1668 1669 1670 1671 1672 1673 1674 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1666 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
1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1678 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
1691 1692 1693 1694 1695 1696 1697 1698 1699 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1691 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
1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1703 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
1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1716 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 |