• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/bitrix24.php
  • Класс: CSocServBitrixOAuth
  • Вызов: CSocServBitrixOAuth::getEntityOAuth
public function getEntityOAuth($code = false)
{
	if(!$this->entityOAuth)
	{
		$this->entityOAuth = new CBitrixOAuthInterface($this->appID, $this->appSecret, $this->portalURI);
	}

	if($code !== false)
	{
		$this->entityOAuth->setCode($code);
	}

	return $this->entityOAuth;
}