You are here

public function CampaignMonitorManager::createClientObj in Campaign Monitor 8.2

Create API client object.

Return value

\CS_REST_Clients The Campaign Monitor client object.

3 calls to CampaignMonitorManager::createClientObj()
CampaignMonitorManager::getCampaigns in src/CampaignMonitorManager.php
Get basic information about campaigns in the form of a keyed array.
CampaignMonitorManager::getDrafts in src/CampaignMonitorManager.php
Get basic information about drafts in the form of a keyed array.
CampaignMonitorManager::getLists in src/CampaignMonitorManager.php
Gets all CM lists found under the client ID given during object creation.

File

src/CampaignMonitorManager.php, line 202

Class

CampaignMonitorManager
Manager for Campaignmonitor.

Namespace

Drupal\campaignmonitor

Code

public function createClientObj() {
  return $this->clientId ? new \CS_REST_Clients($this->clientId, $this->apiKey) : NULL;
}