src/Datajet/Resource/Product.php
public function search(array $data)
    {
        if (!isset($data['size'])) {
            $data['size'] = 10;
        }

        $response = $this->client->post("{$this->uriSearch}search/", [
            'json' => $data,
            'query' => [
                'key' => $this->config['search']['key'],
            ],
        ]);

        $response = json_decode($response->getBody(), true);

        return $response;
    }
public function search(array $data)
    {
        if (!isset($data['size'])) {
            $data['size'] = 10;
        }

        $response = $this->client->post("{$this->uriSearch}search/", [
            'json' => $data,
            'query' => [
                'key' => $this->config['search']['key'],
            ],
        ]);

        $response = json_decode($response->getBody(), true);

        return $response;
    }
public function search ( array $ data ) { if ( ! isset ( $ data [ 'size' ] ) ) { $ data [ 'size' ] = 10 ; } $ response = $ this -> client -> post ( "{$this->uriSearch}search/" , [ 'json' => $ data , 'query' => [ 'key' => $ this -> config [ 'search' ] [ 'key' ] , ] , ] ) ; $ response = json_decode ( $ response -> getBody ( ) , true ) ; return $ response ; }
Product Search.

@param array $data Search parameters

@throws \GuzzleHttp\Exception\GuzzleException

@return array
Product Search .