You are here

function MCAPI::campaignContent in Mailchimp 5

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

Get the content (both html and text) for a campaign, exactly as it would appear in the campaign archive

Related

@returnf string html The HTML content used for the campgain with merge tags intact @returnf string text The Text content used for the campgain with merge tags intact

Parameters

string $cid the campaign id to get content for (can be gathered using campaigns()):

Return value

struct Struct containing all content for the campaign (see Returned Fields for details

File

./MCAPI.class.php, line 470

Class

MCAPI

Code

function campaignContent($cid) {
  $params = array();
  $params["cid"] = $cid;
  return $this
    ->callServer("campaignContent", $params);
}