You are here

function CMBase::CMBase in Campaign Monitor 5.2

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

*

Parameters

string $api Your API key.: * @param string $client The default ClientId you're going to work with. * @param string $campaign The default CampaignId you're going to work with. * @param string $list The default ListId you're going to work with. * @param string $method Determines request type. Values are either get, post, or soap.

1 call to CMBase::CMBase()
CampaignMonitor::CampaignMonitor in lib/CMBase.php
*

File

lib/CMBase.php, line 101

Class

CMBase

Code

function CMBase($api = null, $client = null, $campaign = null, $list = null, $method = 'get') {
  $this->api = $api;
  $this->client_id = $client;
  $this->campaign_id = $campaign;
  $this->list_id = $list;
  $this->method = $method;
  $this->curlExists = function_exists('curl_init') && function_exists('curl_setopt');
}