Google 脚本 - 如何在驱动器中搜索一周内创建的文件?

Google script - How to search files in the drive that are created within a week period?

如何查找驱动器中一周内创建的文件?目前,搜索功能通过修改 date/time 而非创建 date/time.

搜索文件

您可以使用驱动器 API 的 files.list 方法搜索或过滤文件。使用“orderBy”参数和“createdDate”作为有效键。

示例:orderBy=createdDate

有关文件请求的更多信息,请关注此link:https://developers.google.com/drive/v2/reference/files/list