• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/yandex/toloka/apirequest.php
  • Класс: Bitrix\Sender\Integration\Yandex\Toloka\ApiRequest
  • Вызов: ApiRequest::createTasks
public function createTasks(array $taskList)
{
	$tasks = [];
	foreach ($taskList as $item)
	{
		$tasks[] = $item->toArray();
	}

	$this->sendRequest(
		[
			'methodName' => 'task.create',
			'parameters' => $tasks
		]
	);

	return $this->result;
}