public function Upload($contactFile, $allowUnsubscribe = false, $listID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $consentDate = null, $consentIP = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Unknown) {
        return $this->sendRequest('contact/upload', array(
                    'allowUnsubscribe' => $allowUnsubscribe,
                    'listID' => $listID,
                    'listName' => $listName,
                    'status' => $status,
                    'consentDate' => $consentDate,
                    'consentIP' => $consentIP,
                    'consentTracking' => $consentTracking
        ), "POST", $contactFile);
    }
public function Upload($contactFile, $allowUnsubscribe = false, $listID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $consentDate = null, $consentIP = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Unknown) {
        return $this->sendRequest('contact/upload', array(
                    'allowUnsubscribe' => $allowUnsubscribe,
                    'listID' => $listID,
                    'listName' => $listName,
                    'status' => $status,
                    'consentDate' => $consentDate,
                    'consentIP' => $consentIP,
                    'consentTracking' => $consentTracking
        ), "POST", $contactFile);
    }
public function Upload ( $ contactFile , $ allowUnsubscribe = false , $ listID = null , $ listName = null , $ status = \ ElasticEmailEnums \ ContactStatus :: Active , $ consentDate = null , $ consentIP = null , $ consentTracking = \ ElasticEmailEnums \ ConsentTracking :: Unknown ) { return $ this -> sendRequest ( 'contact/upload' , array ( 'allowUnsubscribe' => $ allowUnsubscribe , 'listID' => $ listID , 'listName' => $ listName , 'status' => $ status , 'consentDate' => $ consentDate , 'consentIP' => $ consentIP , 'consentTracking' => $ consentTracking ) , "POST" , $ contactFile ) ; }
Upload contacts in CSV file.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param File $contactFile Name of CSV file with Contacts.
@param bool $allowUnsubscribe True: Allow unsubscribing from this (optional) newly created list. Otherwise, false
@param ?int $listID ID number of selected list.
@param string $listName Name of your list to upload contacts to, or how the new, automatically created list should be named
@param \ElasticEmailEnums\ContactStatus $status Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed.
@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 \ElasticEmailEnums\ConsentTracking $consentTracking
@return int
Upload contacts in CSV file .