public function CreateFromCampaign($campaignID, $listName, array $statuses = array()) {
        return $this->sendRequest('list/createfromcampaign', array(
                    'campaignID' => $campaignID,
                    'listName' => $listName,
                    'statuses' => (count($statuses) === 0) ? null : join(';', $statuses)
        ));
    }
public function CreateFromCampaign($campaignID, $listName, array $statuses = array()) {
        return $this->sendRequest('list/createfromcampaign', array(
                    'campaignID' => $campaignID,
                    'listName' => $listName,
                    'statuses' => (count($statuses) === 0) ? null : join(';', $statuses)
        ));
    }
public function CreateFromCampaign ( $ campaignID , $ listName , array $ statuses = array ( ) ) { return $ this -> sendRequest ( 'list/createfromcampaign' , array ( 'campaignID' => $ campaignID , 'listName' => $ listName , 'statuses' => ( count ( $ statuses ) === 0 ) ? null : join ( ';' , $ statuses ) ) ) ; }
Create a new list from the recipients of the given campaign, using the given statuses of Messages
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param int $campaignID ID of the campaign which recipients you want to copy
@param string $listName Name of your list.
@param array<\ElasticEmailEnums\LogJobStatus> $statuses Statuses of a campaign's emails you want to include in the new list (but NOT the contacts' statuses)
@return int
Create a new list from the recipients of the given campaign using the given statuses of Messages