/** * Create a schedule for a campaign - this is time the campaign will be sent out * @param $campaignId - Id of the campaign to be scheduled * @param $time - ISO 8601 formatted timestamp of when the campaign should be sent */ function createSchedule($campaignId, $time) { $cc = new ConstantContact(APIKEY); $schedule = new Schedule(); $schedule->scheduled_date = $time; return $cc->addEmailCampaignSchedule(ACCESS_TOKEN, $campaignId, $schedule); }