Google apps script 在Google脚本中检索Google驱动器帐户存储配额?

Google apps script 在Google脚本中检索Google驱动器帐户存储配额?,google-apps-script,google-drive-api,Google Apps Script,Google Drive Api,有人能给我举个例子,如何检索Google Drive帐户当前使用的存储配额,并在Google脚本中使用该信息吗?从应用程序脚本中,您可以使用DriveApp.getStorageLimit()获取总存储空间,并使用DriveApp.getStorageUsed()获取使用的存储空间 参考文献:

有人能给我举个例子,如何检索Google Drive帐户当前使用的存储配额,并在Google脚本中使用该信息吗?

从应用程序脚本中,您可以使用
DriveApp.getStorageLimit()
获取总存储空间,并使用
DriveApp.getStorageUsed()
获取使用的存储空间

参考文献: