简体   繁体   中英

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

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM