public function AddContacts($listName, $rule = null, array $emails = array(), $allContacts = false) {
        return $this->sendRequest('list/addcontacts', array(
                    'listName' => $listName,
                    'rule' => $rule,
                    'emails' => (count($emails) === 0) ? null : join(';', $emails),
                    'allContacts' => $allContacts
        ));
    }
public function AddContacts($listName, $rule = null, array $emails = array(), $allContacts = false) {
        return $this->sendRequest('list/addcontacts', array(
                    'listName' => $listName,
                    'rule' => $rule,
                    'emails' => (count($emails) === 0) ? null : join(';', $emails),
                    'allContacts' => $allContacts
        ));
    }
public function AddContacts ( $ listName , $ rule = null , array $ emails = array ( ) , $ allContacts = false ) { return $ this -> sendRequest ( 'list/addcontacts' , array ( 'listName' => $ listName , 'rule' => $ rule , 'emails' => ( count ( $ emails ) === 0 ) ? null : join ( ';' , $ emails ) , 'allContacts' => $ allContacts ) ) ; }
Add existing Contacts to chosen list
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param string $rule Query used for filtering.
@param array<string> $emails Comma delimited list of contact emails
@param bool $allContacts True: Include every Contact in your Account. Otherwise, false
Add existing Contacts to chosen list