ZoomUser::registerJoinMeetingAction

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ZoomUser
  4. registerJoinMeetingAction
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/zoomuser.php
  • Класс: Bitrix\Crm\Controller\ZoomUser
  • Вызов: ZoomUser::registerJoinMeetingAction
public function registerJoinMeetingAction(int $conferenceId)
{
	if (!Loader::includeModule('socialservices'))
	{
		return $this->addError(new Error('Socialservices module is not installed'));
	}
	$conferenceInfo = \Bitrix\SocialServices\Integration\Zoom\Conference::getInfo($conferenceId);
	if (!$conferenceInfo->isSuccess())
	{
		$this->addErrors($conferenceInfo->getErrors());
		return null;
	}

	$confData = $conferenceInfo->getData();
	if (!\CCrmSecurityHelper::IsAuthorized())
	{
		Conference::updateJoinedStatus($conferenceId);
	}

	return new Response\Redirect($confData['CONFERENCE_URL'], true);
}

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