• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/engine/yandexbase.php
  • Класс: BitrixSeoEngineYandexBase
  • Вызов: YandexBase::getAuth
public function getAuth($code)
{
	$ob = $this->getInterface();
	$ob->setCode($code);

	if($ob->getAccessToken())
	{
		unset($this->engineSettings['AUTH_USER']);

		$this->setAuthSettings();
		return true;
	}

	throw new Exception($ob->getError());
}