You are here

function CampaignMonitor::clientGeneric in Campaign Monitor 6.3

Same name and namespace in other branches
  1. 5.2 lib/CMBase.php \CampaignMonitor::clientGeneric()
  2. 6.2 lib/CMBase.php \CampaignMonitor::clientGeneric()
6 calls to CampaignMonitor::clientGeneric()
CampaignMonitor::clientGetCampaigns in lib/CMBase.php
*
CampaignMonitor::clientGetDetail in lib/CMBase.php
*
CampaignMonitor::clientGetLists in lib/CMBase.php
*
CampaignMonitor::clientGetSegments in lib/CMBase.php
*
CampaignMonitor::clientGetSuppressionList in lib/CMBase.php
*

... See full list

File

lib/CMBase.php, line 853

Class

CampaignMonitor
The new CampaignMonitor class that now extends from CMBase. This should be backwards compatible with the original (PHP5) version.

Code

function clientGeneric($method, $client_id = null) {
  if (!$client_id) {
    $client_id = $this->client_id;
  }
  return $this
    ->makeCall('Client.' . $method, array(
    'params' => array(
      'ClientID' => $client_id,
    ),
  ));
}