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

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

        return $marketModelsResponse->getModels()->current();
    }
public function getModelOffers($modelId, $regionId, $currency = null, $orderByPrice = null)
    {
        $resource = sprintf('models/%s/offers.%s', $modelId, self::DECODE_TYPE_DEFAULT);
        $queryParams = $this->filterParams([
            'regionId' => $regionId,
            'currency' => $currency,
            'orderByPrice' => $orderByPrice,
        ]);

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

        return $marketModelsResponse->getModels()->current();
    }
public function getModelOffers ( $ modelId , $ regionId , $ currency = null , $ orderByPrice = null ) { $ resource = sprintf ( 'models/%s/offers.%s' , $ modelId , self :: DECODE_TYPE_DEFAULT ) ; $ queryParams = $ this -> filterParams ( [ 'regionId' => $ regionId , 'currency' => $ currency , 'orderByPrice' => $ orderByPrice , ] ) ; $ response = $ this -> sendRequest ( 'GET' , $ this -> getServiceUrl ( $ resource ) , [ 'query' => $ queryParams ] ) ; $ decodedResponseBody = $ this -> getDecodedBody ( $ response -> getBody ( ) ) ; $ marketModelsResponse = new GetMarketModelsResponse ( $ decodedResponseBody ) ; return $ marketModelsResponse -> getModels ( ) -> current ( ) ; }
Get model offers

@param int $modelId
@param int $regionId
@param string $currency
@param string $orderByPrice
@return MarketModel

@link https://tech.yandex.ru/market/partner/doc/dg/reference/get-models-id-offers-docpage/
Get model offers