Google drive api 在Google Drive API中使用createdTime属性的Agment列表文件API调用

Google drive api 在Google Drive API中使用createdTime属性的Agment列表文件API调用,google-drive-api,Google Drive Api,我想通过 包含createdTime属性的API调用 标准响应不包括中描述的createdTime键,因此我添加了字段查询参数,其值为createdTime(有一个相关的参数这么说,但在我使用API v3时引用API v2) 我正在执行的API调用如下所示: https://www.googleapis.com/drive/v3/files?fields=createdTime 通过适当的身份验证 返回400状态代码响应,其正文如下: { "error": { "err

我想通过 包含createdTime属性的API调用

标准响应不包括中描述的createdTime键,因此我添加了字段查询参数,其值为createdTime(有一个相关的参数这么说,但在我使用API v3时引用API v2)

我正在执行的API调用如下所示:

https://www.googleapis.com/drive/v3/files?fields=createdTime
通过适当的身份验证

返回400状态代码响应,其正文如下:

{
    "error": {
        "errors": [
            {
                "domain": "global",
                "reason": "invalidParameter",
                "message": "Invalid field selection createdTime",
                "locationType": "parameter",
                "location": "fields"
            }
        ],
        "code": 400,
        "message": "Invalid field selection createdTime"
    }
}

使用字段查询参数的正确方法是什么?

如果要查看完整响应,可以执行以下操作

如果您只需要创建日期,也可以这样做


在查看了我找到的唯一方法是使用value设置字段查询参数之后,您可以在

中了解更多信息。所以API调用有点像我丢失了
文件
值,它记录在哪里?所有字段都允许您分割响应。只需检查filelistresponse,它包含一个文件列表
https://www.googleapis.com/drive/v3/files?fields=*
https://www.googleapis.com/drive/v3/files?fields=files(createdTime)