Zoom::getImChatConferenceUrl

  1. Bitrix24 API (v. 23.675.0)
  2. im
  3. Zoom
  4. getImChatConferenceUrl
  • Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/integration/zoom.php
  • Класс: BitrixImCallIntegrationZoom
  • Вызов: Zoom::getImChatConferenceUrl
public function getImChatConferenceUrl(): ?string
{
	$confUrl = null;
	$existedConf = $this->getExistedChatConference();

	if (!is_array($existedConf) || (!empty($this->accessToken) && $this->isConferenceExpired($existedConf)))
	{
		$newConfResult = $this->requestNewChatConference();
		if ($newConfResult->isSuccess())
		{
			$newConferenceData = $newConfResult->getData();

			$confUrl = $newConferenceData['join_url'];
		}
	}
	elseif (is_array($existedConf))
	{
		$confUrl = $existedConf['CONFERENCE_URL'];
	}

	return $confUrl;
}

Добавить комментарий