Controller/EventsController.php
public function search($sessionId, Search $search, $hits)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['sessionId' => $sessionId, 'search' => $search, 'hits' => $hits], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/events/search', $parameters, true);

        return $result;
    }
public function search($sessionId, Search $search, $hits)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['sessionId' => $sessionId, 'search' => $search, 'hits' => $hits], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/events/search', $parameters, true);

        return $result;
    }
public function search ( $ sessionId , Search $ search , $ hits ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ 'sessionId' => $ sessionId , 'search' => $ search , 'hits' => $ hits ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/events/search' , $ parameters , true ) ; return $ result ; }
Track a Search.

NOTICE!
Execution of this call will be delayed until destruct!

@param int    $sessionId The session id to log the search on
@param Search $search    The Search that was made
@param int    $hits      Number of hits for this search
Track a Search .