method
public
Google::getAuth()
Класс: \Bitrix\Seo\Engine\Google
Сигнатура
public getAuth(mixed $code) : mixed
Параметры
$code
mixed
Возвращаемое значение
mixed
Как применяется в Google
Google::getAuth() — метод класса \Bitrix\Seo\Engine\Google модуля «Поисковая оптимизация».
Метод объекта: сначала нужен экземпляр Google.
use Bitrix\Main\Loader;
use Bitrix\Seo\Engine\Google;
Loader::includeModule('seo');
/** @var Google $object */
$code = null;
$result = $object->getAuth($code);
// $result: mixedДругие методы Google
addSite()checkAuthExpired()getAuthUrl()getCurrentUser()getFeeds()getInterface()getScope()refreshAuth()setAuthSettings()verifyGetToken()verifySite()
getAuth() есть и у других классов модуля «Поисковая оптимизация»: Yandex, YandexBase, YandexDirect, YandexDirectLive.
Исходный файл: source/seo/lib/engine/google.php:129

