src/Services/CampaignDraftService.php
public function scheduleCampaign($CampaignId, $date)
    {
        $response = $this->mailjet->post(Resources::$CampaigndraftSchedule,
            ['id' => $CampaignId, 'body' => $date]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftService:scheduleCampaign failed",
                $response);
        }

        return $response->getData();
    }
public function scheduleCampaign($CampaignId, $date)
    {
        $response = $this->mailjet->post(Resources::$CampaigndraftSchedule,
            ['id' => $CampaignId, 'body' => $date]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftService:scheduleCampaign failed",
                $response);
        }

        return $response->getData();
    }
public function scheduleCampaign ( $ CampaignId , $ date ) { $ response = $ this -> mailjet -> post ( Resources :: $ CampaigndraftSchedule , [ 'id' => $ CampaignId , 'body' => $ date ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftService:scheduleCampaign failed" , $ response ) ; } return $ response -> getData ( ) ; }
Schedule when the campaigndraft will be sent
@param string Campaign $id
@param RFC3339 format "Y-m-d\TH:i:sP"  $date
@return array
Schedule when the campaigndraft will be sent