You are here

function CampaignMonitor::templateCreate in Campaign Monitor 6.3

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

*

Parameters

int $client_id (ClientID) ID of the client the template will be created for: * @param string $template_name (TemplateName) Name of the new template * @param string $html_url (HTMLPageURL) URL of the HTML page you have created for the template * @param string $zip_url (ZipFileURL) URL of a zip file containing any other files required by the template * @param string $screenshot_url (ScreenshotURL) URL of a screenshot of the template * @see http://www.campaignmonitor.com/api/method/template-create/

File

lib/CMBase.php, line 1500

Class

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

Code

function templateCreate($client_id, $template_name, $html_url, $zip_url, $screenshot_url) {
  return $this
    ->makeCall('Template.Create', array(
    'params' => array(
      'ClientID' => $client_id,
      'TemplateName' => $template_name,
      'HTMLPageURL' => $html_url,
      'ZipFileURL' => $zip_url,
      'ScreenshotURL' => $screenshot_url,
    ),
  ));
}