You are here

function MCAPI::campaignSchedule in Mailchimp 7

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

Schedule a campaign to be sent in the future

Related

@example mcapi_campaignSchedule.php @example xml-rpc_campaignSchedule.php

Parameters

string $cid the id of the campaign to schedule:

string $schedule_time the time to schedule the campaign. For A/B Split "schedule" campaigns, the time for Group A - in YYYY-MM-DD HH:II:SS format in <strong>GMT</strong>:

string $schedule_time_b optional -the time to schedule Group B of an A/B Split "schedule" campaign - in YYYY-MM-DD HH:II:SS format in <strong>GMT</strong>:

Return value

boolean true on success

File

./MCAPI.class.php, line 97

Class

MCAPI

Code

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