• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/marketplace/transport.php
  • Класс: BitrixRestMarketplaceTransport
  • Вызов: Transport::call
public function call($method, $fields = array())
{
	$query = $this->prepareQuery($method, $fields);

	$httpClient = new HttpClient(array(
		'socketTimeout' => static::SOCKET_TIMEOUT,
		'streamTimeout' => static::STREAM_TIMEOUT,
	));

	$response = $httpClient->post($this->getServiceUrl(), $query);

	return $this->prepareAnswer($response);
}