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

	foreach($actions as $key => $batch)
	{
		if (!isset($batch[1]))
		{
			$batch[1] = [];
		}
		$query[$key] = $this->prepareQuery($batch[0], $batch[1]);
	}

	$query = array('batch' => $query);

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

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