public function EECopy($sourceSegmentName, $newSegmentName = null, $rule = null) {
        return $this->sendRequest('segment/copy', array(
                    'sourceSegmentName' => $sourceSegmentName,
                    'newSegmentName' => $newSegmentName,
                    'rule' => $rule
        ));
    }
public function EECopy($sourceSegmentName, $newSegmentName = null, $rule = null) {
        return $this->sendRequest('segment/copy', array(
                    'sourceSegmentName' => $sourceSegmentName,
                    'newSegmentName' => $newSegmentName,
                    'rule' => $rule
        ));
    }
public function EECopy ( $ sourceSegmentName , $ newSegmentName = null , $ rule = null ) { return $ this -> sendRequest ( 'segment/copy' , array ( 'sourceSegmentName' => $ sourceSegmentName , 'newSegmentName' => $ newSegmentName , 'rule' => $ rule ) ) ; }
Copy your existing Segment with the optional new rule and custom name
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $sourceSegmentName The name of the segment you want to copy
@param string $newSegmentName New name of your segment if you want to change it.
@param string $rule Query used for filtering.
@return \ElasticEmailEnums\Segment
Copy your existing Segment with the optional new rule and custom name