• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/checkout/services/accountyandex.php
  • Класс: Bitrix\Seo\Checkout\Services\AccountYandex
  • Вызов: AccountYandex::getProfile
public function getProfile()
{
	$response = $this->getRequest()->send([
		'methodName' => 'profile.info',
		'parameters' => []
	]);

	$response = $response->getData();
	if (\is_array($response))
	{
		return [
			'ID' => $response['id'],
			'NAME' => $response['login'],
			'LINK' => '',
			'PICTURE' => '',
		];
	}

	return null;
}