thinkshout/mailchimp-api-php

Schedule Campaign variables

Closed this issue · 1 comments

$timewarp & $batch_delivery should have default values i think...

public function schedule($campaign_id, $schedule_time, $timewarp = FALSE, $batch_delivery = FALSE, $parameters = [], $batch = FALSE) {
$tokens = [
'campaign_id' => $campaign_id,
];

$parameters += [
  'schedule_time' => $schedule_time,
  'timewarp' => $timewarp,
  'batch_delivery' => $batch_delivery,
];

return $this->request('POST', '/campaigns/{campaign_id}/actions/schedule', $tokens, $parameters, $batch);

}

You're correct! Thanks for catching that.