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.
1560 1561 1562 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1560 def initialize(client) super(client) end |
Instance Method Details
#add(reach_profile) ⇒ KalturaReachProfile
Allows you to add a partner specific reach profile
1566 1567 1568 1569 1570 1571 1572 1573 1574 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1566 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
1578 1579 1580 1581 1582 1583 1584 1585 1586 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1578 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
1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1590 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
1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1602 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
1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1615 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
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1627 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
1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1640 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 |