• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/vkontakte.php
  • Класс: CVKontakteOAuthInterface
  • Вызов: CVKontakteOAuthInterface::GetAppInfo
public function GetAppInfo()
{
	if ($this->access_token === false)
		return false;

	$h = new BitrixMainWebHttpClient();
	$h->setTimeout($this->httpTimeout);

	$result = $h->get(self::APP_URL . '?v='.self::API_VERSION.'&fields=id&access_token=' . urlencode($this->access_token));

	try
	{
		$result = BitrixMainWebJson::decode($result);
	} catch (BitrixMainArgumentException $e)
	{
		$result = array();
	}

	return $result['response']['items'][0];
}