如何在 Google 驱动器 API v3 中获取文件的 'lastModified'?

How can I get file's 'lastModified' in Google Drive API v3?

我最近决定从 Drive API v2 迁移到 v3。

在v2中,files().get(fileId) return几乎所有的属性,但在v3中,它没有return lastModified,这对我来说非常重要。无论如何我可以在 v3 中做到这一点吗?

在 Drive API v3 中默认不再返回完整资源。使用 fields 查询参数请求返回特定字段。参见 docs