• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/vkontakte.php
  • Класс: CVKontakteOAuthInterface
  • Вызов: CVKontakteOAuthInterface::GetAuthUrl
public function GetAuthUrl($redirect_uri, $state = '')
{
	if ($state)
	{
		$state = base64_encode($state);
	}

	return self::AUTH_URL .
	"?client_id=" . urlencode($this->appID) .
	"&redirect_uri=" . urlencode($redirect_uri) .
	"&scope=" . $this->getScopeEncode() .
	"&response_type=code" .
	($state <> '' ? '&state=' . urlencode($state) : '');
}