Overview
  • Namespace
  • Class

Namespaces

  • MailChimp
    • AuthorizedApps
    • Automations
    • Batches
    • CampaignFolders
    • Campaigns
    • Conversations
    • Ecommerce
    • FileManager
    • Lists
    • Reports
    • TemplateFolders
    • Templates

Classes

  • Campaigns
  • Content
  • Feedback

Class Content

MailChimp\MailChimp
Extended by MailChimp\Campaigns\Content
Namespace: MailChimp\Campaigns
Located at Campaigns/Content.php

Methods summary

public object
# getCampaignContent( string $campaign_id, array $query = [] )

Get the the HTML and plain-text content for a campaign.

Get the the HTML and plain-text content for a campaign.

array["fields"] array list of strings of response fields to return array["exclude_fields"] array list of strings of response fields to exclude (not to be used with "fields")

Parameters

$campaign_id
for the campaign instance
$query
(See Above) OPTIONAL associative array of query parameters.

Returns

object
public object
# setCampaignContent( string $campaign_id, array $optional_settings = [] )

Set the content for a campaign.

Set the content for a campaign.

array $optional_settings array ["plain_text"] string The plain-text portion of the campaign. ["html"] string The raw HTML for the campaign. ["url"] string When importing a campaign, the URL where the HTML lives. ["template"] array Use this template to generate the HTML content of the campaign ["id"] int REQUIRED WHEN USING TEMPLATE The id of the template to use. ["sections"] array Content for the sections of the template. Each key should be the unique mc:edit area name from the template. ["archive"] array Available when uploading an archive to create campaign content. ["archive_content"] string REQUIRED WHEN USING ARCHIVE base64-encoded representation of the archive file. ["archive_type"] string The type of encoded file. Defaults to zip. Possible Values: zip, tar.gz, tar.bz2,tar, tgz, tbz

Parameters

$campaign_id
for the campaign instance
$optional_settings
(See Above for available fields)

Returns

object

Methods inherited from MailChimp\MailChimp

__construct(), authorizedApps(), automations(), batchOps(), campaignFolders(), campaigns(), conversations(), createLog(), ecommerce(), execute(), fileManager(), fileManagerFolders(), getAccountInfo(), getMemberHash(), lists(), logData(), optionalFields(), reports(), searchMembers(), templateFolders(), templates()

API documentation generated by ApiGen