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

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

        return $response->getData();
    }
public function updateCampaignSchedule ( $ CampaignId , $ date ) { $ response = $ this -> mailjet -> put ( Resources :: $ CampaigndraftSchedule , [ 'id' => $ CampaignId , 'body' => $ date ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftService:updateCampaignSchedule failed" , $ response ) ; } return $ response -> getData ( ) ; }
Update the date when the campaigndraft will be sent
@param string Campaign $id
@param string Schedule $date
@return array
Update the date when the campaigndraft will be sent