function CampaignMonitor::campaignGeneric in Campaign Monitor 5.2
Same name and namespace in other branches
- 6.3 lib/CMBase.php \CampaignMonitor::campaignGeneric()
- 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()
File
- lib/
CMBase.php, line 1193
Class
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,
),
));
}