public function LoadByName($segmentNames, $includeHistory = false, $from = null, $to = null) {
        return $this->sendRequest('segment/loadbyname', array(
                    'segmentNames' => (count($segmentNames) === 0) ? null : join(';', $segmentNames),
                    'includeHistory' => $includeHistory,
                    'from' => $from,
                    'to' => $to
        ));
    }
public function LoadByName($segmentNames, $includeHistory = false, $from = null, $to = null) {
        return $this->sendRequest('segment/loadbyname', array(
                    'segmentNames' => (count($segmentNames) === 0) ? null : join(';', $segmentNames),
                    'includeHistory' => $includeHistory,
                    'from' => $from,
                    'to' => $to
        ));
    }
public function LoadByName ( $ segmentNames , $ includeHistory = false , $ from = null , $ to = null ) { return $ this -> sendRequest ( 'segment/loadbyname' , array ( 'segmentNames' => ( count ( $ segmentNames ) === 0 ) ? null : join ( ';' , $ segmentNames ) , 'includeHistory' => $ includeHistory , 'from' => $ from , 'to' => $ to ) ) ; }
Lists your available Segments using the provided names
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<string> $segmentNames Names of segments you want to load. Will load all contacts if left empty or the 'All Contacts' name has been provided
@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 your available Segments using the provided names