• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/onedrivehandler.php
  • Класс: BitrixDiskDocumentOneDriveHandler
  • Вызов: OneDriveHandler::queryAccessToken
public function queryAccessToken()
{
	if(!Loader::includeModule('socialservices'))
	{
		$this->errorCollection->add(array(new Error(Loc::getMessage('DISK_ONEDRIVE_HANDLER_ERROR_NOT_INSTALLED_SOCSERV'), self::ERROR_NOT_INSTALLED_SOCSERV)));
		return false;
	}

	$oauthService = $this->getOAuthService();
	$this->accessToken = $oauthService->getStorageToken();

	return $this;
}