为什么 Google Drive API returns 响应不完整?

Why does Google Drive API returns incomplete response?

我正在使用 google-api-python-client 调用 Google 驱动器 API。

根据 the API's specget 应该 return 有很多字段的 JSON。但是我的程序只有returns idnamemimeTypekind如下:

{
    "id": <omitted>,
    "name": "myfile.txt",
    "mimeType": "text/plain",
    "kind": "drive#file"
}

如何使用此 API 获取有关文件的其他元数据?

好的。我找到了答案。规格页面上的信息不完整。正如 another page 中所指出的,API 调用接受一个 fields 参数,该参数将字段指定为 return.