public function QuickAdd($emails, $firstName = null, $lastName = null, $publicListID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $notes = null, $consentDate = null, $consentIP = null, array $field = array(), $notifyEmail = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Unknown) {
        $arr = array('emails' => (count($emails) === 0) ? null : join(';', $emails),
                    'firstName' => $firstName,
                    'lastName' => $lastName,
                    'publicListID' => $publicListID,
                    'listName' => $listName,
                    'status' => $status,
                    'notes' => $notes,
                    'consentDate' => $consentDate,
                    'consentIP' => $consentIP,
                    'notifyEmail' => $notifyEmail,
                    'consentTracking' => $consentTracking        );
        foreach(array_keys($field) as $key) {
            $arr['field_'.$key] = $field[$key]; 
        }
        return $this->sendRequest('contact/quickadd', $arr);
    }
public function QuickAdd($emails, $firstName = null, $lastName = null, $publicListID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $notes = null, $consentDate = null, $consentIP = null, array $field = array(), $notifyEmail = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Unknown) {
        $arr = array('emails' => (count($emails) === 0) ? null : join(';', $emails),
                    'firstName' => $firstName,
                    'lastName' => $lastName,
                    'publicListID' => $publicListID,
                    'listName' => $listName,
                    'status' => $status,
                    'notes' => $notes,
                    'consentDate' => $consentDate,
                    'consentIP' => $consentIP,
                    'notifyEmail' => $notifyEmail,
                    'consentTracking' => $consentTracking        );
        foreach(array_keys($field) as $key) {
            $arr['field_'.$key] = $field[$key]; 
        }
        return $this->sendRequest('contact/quickadd', $arr);
    }
public function QuickAdd ( $ emails , $ firstName = null , $ lastName = null , $ publicListID = null , $ listName = null , $ status = \ ElasticEmailEnums \ ContactStatus :: Active , $ notes = null , $ consentDate = null , $ consentIP = null , array $ field = array ( ) , $ notifyEmail = null , $ consentTracking = \ ElasticEmailEnums \ ConsentTracking :: Unknown ) { $ arr = array ( 'emails' => ( count ( $ emails ) === 0 ) ? null : join ( ';' , $ emails ) , 'firstName' => $ firstName , 'lastName' => $ lastName , 'publicListID' => $ publicListID , 'listName' => $ listName , 'status' => $ status , 'notes' => $ notes , 'consentDate' => $ consentDate , 'consentIP' => $ consentIP , 'notifyEmail' => $ notifyEmail , 'consentTracking' => $ consentTracking ) ; foreach ( array_keys ( $ field ) as $ key ) { $ arr [ 'field_' . $ key ] = $ field [ $ key ] ; } return $ this -> sendRequest ( 'contact/quickadd' , $ arr ) ; }
Add new Contact to one of your Lists.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<string> $emails Comma delimited list of contact emails
@param string $firstName First name.
@param string $lastName Last name.
@param string $publicListID ID code of list
@param string $listName Name of your list.
@param \ElasticEmailEnums\ContactStatus $status Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed.
@param string $notes Free form field of notes
@param ?DateTime $consentDate Date of consent to send this contact(s) your email. If not provided current date is used for consent.
@param string $consentIP IP address of consent to send this contact(s) your email. If not provided your current public IP address is used for consent.
@param array<string, string> $field Custom contact field like firstname, lastname, city etc. Request parameters prefixed by field_ like field_firstname, field_lastname
@param string $notifyEmail Emails, separated by semicolon, to which the notification about contact subscribing should be sent to
@param \ElasticEmailEnums\ConsentTracking $consentTracking
Add new Contact to one of your Lists .