public function search($query)
    {
        $endpoint = $this->endpoint . '/search';

        $params = array_merge($this->prepareParams(), ['query' => $query]);

        $response = $this->restClient->get($endpoint, $params);

        return $response['body'];
    }
public function search($query)
    {
        $endpoint = $this->endpoint . '/search';

        $params = array_merge($this->prepareParams(), ['query' => $query]);

        $response = $this->restClient->get($endpoint, $params);

        return $response['body'];
    }
public function search ( $ query ) { $ endpoint = $ this -> endpoint . '/search' ; $ params = array_merge ( $ this -> prepareParams ( ) , [ 'query' => $ query ] ) ; $ response = $ this -> restClient -> get ( $ endpoint , $ params ) ; return $ response [ 'body' ] ; }
Seach for a subscriber by email or custom field value

@param  string $query
@return [type]
Seach for a subscriber by email or custom field value