public function batchSubscribe($batch, $double_optin = true, $update_existing = true, $replace_interests = true) {
        $payload = array(
            'id' => $this->listId,
            'batch' => $batch,
            'double_optin' => $double_optin,
            'update_existing' => $update_existing,
            'replace_interests' => $replace_interests,
        );
        $apiCall = 'lists/batch-subscribe';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data) ? $data : false;
    }
public function batchSubscribe($batch, $double_optin = true, $update_existing = true, $replace_interests = true) {
        $payload = array(
            'id' => $this->listId,
            'batch' => $batch,
            'double_optin' => $double_optin,
            'update_existing' => $update_existing,
            'replace_interests' => $replace_interests,
        );
        $apiCall = 'lists/batch-subscribe';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data) ? $data : false;
    }
public function batchSubscribe ( $ batch , $ double_optin = true , $ update_existing = true , $ replace_interests = true ) { $ payload = array ( 'id' => $ this -> listId , 'batch' => $ batch , 'double_optin' => $ double_optin , 'update_existing' => $ update_existing , 'replace_interests' => $ replace_interests , ) ; $ apiCall = 'lists/batch-subscribe' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return isset ( $ data ) ? $ data : false ; }
Subscribe a batch of email addresses to a list at once,
These calls are also long, so be sure you increase your timeout values

@link http://apidocs.mailchimp.com/api/2.0/lists/batch-subscribe.php
@param string $batch - array of arrays with ['email','email_type','merge_vars']
@param boolean $double_optin optional
@param boolean $update_existing optional
@param boolean $replace_interests optional
@return array
@throws MailchimpAPIException
Subscribe a batch of email addresses to a list at once These calls are also long so be sure you increase your timeout values