function MCAPI::campaignContent in Mailchimp 7
Same name and namespace in other branches
- 5.2 MCAPI.class.php \MCAPI::campaignContent()
- 5 MCAPI.class.php \MCAPI::campaignContent()
- 6.2 MCAPI.class.php \MCAPI::campaignContent()
- 6 MCAPI.class.php \MCAPI::campaignContent()
Get the content (both html and text) for a campaign either as it would appear in the campaign archive or as the raw, original content
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()):
bool $for_archive optional controls whether we return the Archive version (true) or the Raw version (false), defaults to true:
Return value
struct Struct containing all content for the campaign (see Returned Fields for details
File
- ./
MCAPI.class.php, line 756
Class
Code
function campaignContent($cid, $for_archive = true) {
$params = array();
$params["cid"] = $cid;
$params["for_archive"] = $for_archive;
return $this
->callServer("campaignContent", $params);
}