public function EEList($includeHistory = false, $from = null, $to = null) {
        return $this->sendRequest('segment/list', array(
                    'includeHistory' => $includeHistory,
                    'from' => $from,
                    'to' => $to
        ));
    }
public function EEList($includeHistory = false, $from = null, $to = null) {
        return $this->sendRequest('segment/list', array(
                    'includeHistory' => $includeHistory,
                    'from' => $from,
                    'to' => $to
        ));
    }
public function EEList ( $ includeHistory = false , $ from = null , $ to = null ) { return $ this -> sendRequest ( 'segment/list' , array ( 'includeHistory' => $ includeHistory , 'from' => $ from , 'to' => $ to ) ) ; }
Lists all your available Segments
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param bool $includeHistory True: Include history of last 30 days. Otherwise, false.
@param ?DateTime $from From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format.
@param ?DateTime $to To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format.
@return Array<\ElasticEmailEnums\Segment>
Lists all your available Segments