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

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

	return $this->entityOAuth;
}