• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/odnoklassniki.php
  • Класс: COdnoklassnikiInterface
  • Вызов: COdnoklassnikiInterface::__construct
public function __construct($appID = false, $appSecret = false, $appKey = false, $code=false)
{
	if($appID === false)
	{
		$appID = trim(CSocServLiveIDOAuth::GetOption("odnoklassniki_appid"));
	}

	if($appSecret === false)
	{
		$appSecret = trim(CSocServLiveIDOAuth::GetOption("odnoklassniki_appsecret"));
	}

	if($appKey === false)
	{
		$appKey = trim(CSocServLiveIDOAuth::GetOption("odnoklassniki_appkey"));
	}

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