private function refreshBatchesResult($batchesResult)
    {
        $refreshedBatchsResults = [];
        $mailchimp = $this->getContainer()->get('welp_mailchimp.mailchimp_master');
        foreach ($batchesResult as $key => $batch) {
            $batch = $mailchimp->get("batches/".$batch['id']);
            array_push($refreshedBatchsResults, $batch);
        }
        return $refreshedBatchsResults;
    }
private function refreshBatchesResult($batchesResult)
    {
        $refreshedBatchsResults = [];
        $mailchimp = $this->getContainer()->get('welp_mailchimp.mailchimp_master');
        foreach ($batchesResult as $key => $batch) {
            $batch = $mailchimp->get("batches/".$batch['id']);
            array_push($refreshedBatchsResults, $batch);
        }
        return $refreshedBatchsResults;
    }
private function refreshBatchesResult ( $ batchesResult ) { $ refreshedBatchsResults = [ ] ; $ mailchimp = $ this -> getContainer ( ) -> get ( 'welp_mailchimp.mailchimp_master' ) ; foreach ( $ batchesResult as $ key => $ batch ) { $ batch = $ mailchimp -> get ( "batches/" . $ batch [ 'id' ] ) ; array_push ( $ refreshedBatchsResults , $ batch ) ; } return $ refreshedBatchsResults ; }
Refresh all batch from MailChimp API
@param array $batchesResult
@return array
Refresh all batch from MailChimp API