You are here

function CampaignMonitor::campaignGeneric in Campaign Monitor 5.2

Same name and namespace in other branches
  1. 6.3 lib/CMBase.php \CampaignMonitor::campaignGeneric()
  2. 6.2 lib/CMBase.php \CampaignMonitor::campaignGeneric()

* A generic wrapper to feed Campaign.* calls. * *

Parameters

string $method The API method to call.: * @param int $campaign_id (Optional) A valid Campaign ID to check against. If not given, the default class property is used. * @return mixed A parsed response from the server, or null if something failed.

6 calls to CampaignMonitor::campaignGeneric()
CampaignMonitor::campaignGetBounces in lib/CMBase.php
*
CampaignMonitor::campaignGetLists in lib/CMBase.php
*
CampaignMonitor::campaignGetOpens in lib/CMBase.php
*
CampaignMonitor::campaignGetSubscriberClicks in lib/CMBase.php
*
CampaignMonitor::campaignGetSummary in lib/CMBase.php
*

... See full list

File

lib/CMBase.php, line 1193

Class

CampaignMonitor

Code

function campaignGeneric($method, $campaign_id = null) {
  if (!$campaign_id) {
    $campaign_id = $this->campaign_id;
  }
  return $this
    ->makeCall('Campaign.' . $method, array(
    'params' => array(
      'CampaignID' => $campaign_id,
    ),
  ));
}