You are here

public function MailchimpCampaigns::setCampaignContent in Mailchimp 8

Sets the HTML, plain-text, and template content for a Mailchimp campaign.

Parameters

string $campaign_id: The ID of the campaign.

array $parameters: Associative array of optional request parameters.

Return value

object

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/campaig...

File

lib/mailchimp-api-php/src/MailchimpCampaigns.php, line 115

Class

MailchimpCampaigns
Mailchimp Campaigns library.

Namespace

Mailchimp

Code

public function setCampaignContent($campaign_id, $parameters = []) {
  $tokens = [
    'campaign_id' => $campaign_id,
  ];
  return $this
    ->request('PUT', '/campaigns/{campaign_id}/content', $tokens, $parameters);
}