You are here

function MCAPI::campaignTemplates in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::campaignTemplates()
  2. 5 MCAPI.class.php \MCAPI::campaignTemplates()
  3. 6.2 MCAPI.class.php \MCAPI::campaignTemplates()
  4. 6 MCAPI.class.php \MCAPI::campaignTemplates()

Retrieve all templates defined for your user account

Related

@example mcapi_campaignTemplates.php @example xml-rpc_campaignTemplates.php

@returnf integer id Id of the template @returnf string name Name of the template @returnf string layout Layout of the template - "basic", "left_column", "right_column", or "postcard" @returnf array sections associative array of editable sections in the template that can accept custom HTML when sending a campaign

Return value

array An array of structs, one for each template (see Returned Fields for details)

File

./MCAPI.class.php, line 185

Class

MCAPI

Code

function campaignTemplates() {
  $params = array();
  return $this
    ->callServer("campaignTemplates", $params);
}