Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/yandex.market/lib/api/content/ |
Upload File : |
<?php /** * Sample: * * CModule::includeModule('yandex.market'); * $rsOpinions = new \Yandex\Market\Api\Content\ModelOpinions('46fe7ca9-f82a-4a6a-bf9a-ff9b2ec76bae'); * print_r($rsOpinions->get('1727683629')); */ namespace Yandex\Market\Api\Content; /** @deprecated */ class Search extends Base { public function get($text, $params = array()) { $params['text'] = $text; $fullServiceUrl = $this->getServiceUrl('search?' . $this->buildQueryParams($params)); $arResult = $this->queryGet($fullServiceUrl); if (\strtoupper($arResult['content']['status']) === 'OK') { return $arResult['content']['items']; } throw new \Exception('Data receiving error: ' . implode(PHP_EOL, $arResult['errors'])); } }