src/Yandex/Market/Partner/PartnerClient.php
public function findModels($searchQuery, $regionId, $page = null, $pageSize = null, $currency = null)
    {
        $resource = sprintf('models.%s', self::DECODE_TYPE_DEFAULT);
        $queryParams = $this->filterParams([
            'query' => $searchQuery,
            'regionId' => $regionId,
            'page' => $page,
            'pageSize' => $pageSize,
            'currency' => $currency,
        ]);

        $response = $this->sendRequest('GET', $this->getServiceUrl($resource), ['query' => $queryParams]);
        $decodedResponseBody = $this->getDecodedBody($response->getBody());

        return new GetMarketModelsResponse($decodedResponseBody);
    }
public function findModels($searchQuery, $regionId, $page = null, $pageSize = null, $currency = null)
    {
        $resource = sprintf('models.%s', self::DECODE_TYPE_DEFAULT);
        $queryParams = $this->filterParams([
            'query' => $searchQuery,
            'regionId' => $regionId,
            'page' => $page,
            'pageSize' => $pageSize,
            'currency' => $currency,
        ]);

        $response = $this->sendRequest('GET', $this->getServiceUrl($resource), ['query' => $queryParams]);
        $decodedResponseBody = $this->getDecodedBody($response->getBody());

        return new GetMarketModelsResponse($decodedResponseBody);
    }
public function findModels ( $ searchQuery , $ regionId , $ page = null , $ pageSize = null , $ currency = null ) { $ resource = sprintf ( 'models.%s' , self :: DECODE_TYPE_DEFAULT ) ; $ queryParams = $ this -> filterParams ( [ 'query' => $ searchQuery , 'regionId' => $ regionId , 'page' => $ page , 'pageSize' => $ pageSize , 'currency' => $ currency , ] ) ; $ response = $ this -> sendRequest ( 'GET' , $ this -> getServiceUrl ( $ resource ) , [ 'query' => $ queryParams ] ) ; $ decodedResponseBody = $ this -> getDecodedBody ( $ response -> getBody ( ) ) ; return new GetMarketModelsResponse ( $ decodedResponseBody ) ; }
Find models by query

@param string $searchQuery
@param int $regionId
@param int $page
@param int $pageSize
@param string $currency
@return GetMarketModelsResponse

@link https://tech.yandex.ru/market/partner/doc/dg/reference/get-models-docpage/
Find models by query