You are here

public function MailchimpCampaigns::send in Mailchimp 8

Send a Mailchimp campaign.

Parameters

string $campaign_id: The ID of the campaign.

bool $batch: TRUE to create a new pending batch operation.

Return value

object

See also

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

File

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

Class

MailchimpCampaigns
Mailchimp Campaigns library.

Namespace

Mailchimp

Code

public function send($campaign_id, $batch = FALSE) {
  $tokens = [
    'campaign_id' => $campaign_id,
  ];
  return $this
    ->request('POST', '/campaigns/{campaign_id}/actions/send', $tokens, NULL, $batch);
}