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.
1589 1590 1591 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1589 def initialize(client) super(client) end |
Instance Method Details
#add(reach_profile) ⇒ KalturaReachProfile
Allows you to add a partner specific reach profile
1595 1596 1597 1598 1599 1600 1601 1602 1603 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1595 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
1607 1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1607 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
1619 1620 1621 1622 1623 1624 1625 1626 1627 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1619 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
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1631 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
1644 1645 1646 1647 1648 1649 1650 1651 1652 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1644 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
1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1656 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
1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1669 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 |