• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/transcript.php
  • Класс: BitrixVoximplantTranscript
  • Вызов: Transcript::fetch
public function fetch()
{
	$httpClient = HttpClientFactory::create();
	$response = $httpClient->get($this->url);
	$responseCharset = $httpClient->getCharset();
	if($responseCharset != '')
	{
		$content = Encoding::convertEncoding($response, $responseCharset, SITE_CHARSET);
	}
	else
	{
		$content = $response;
	}

	if(!$content)
	{
		return false;
	}

	$this->content = $content;
	$this->lines = $this->parse($content);
	return true;
}