问题
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