• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/oauthtransport.php
  • Класс: CSocServOAuthTransport
  • Вызов: CSocServOAuthTransport::__construct
public function __construct($appID, $appSecret, $code = false)
{
	global $USER;

	$this->httpTimeout = SOCSERV_DEFAULT_HTTP_TIMEOUT;
	$this->appID = $appID;
	$this->appSecret = $appSecret;
	$this->code = $code;

	if(is_object($USER) && $USER->IsAuthorized())
	{
		$this->userId = $USER->GetID();
	}
}