Adesh Atole
Adesh Atole

Reputation: 762

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?

Upvotes: 5

Views: 5282

Answers (1)

Zeehad
Zeehad

Reputation: 1102

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.

Upvotes: 7

Related Questions