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

帅比萌擦擦* 提交于 2019-12-22 10:12:21

问题


I recently decided to migrate from Drive API v2 to v3.

In v2, files().get(fileId) returns almost all attributes, but in v3, it doesn't return the lastModified, which is very essential for me. Is there anyway I can do it in v3?


回答1:


In Drive API v3 full resources are no longer returned by default. Use the fields query parameter to request specific fields to be returned. See docs.



来源:https://stackoverflow.com/questions/35435934/how-can-i-get-files-lastmodified-in-google-drive-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!