Reputation: 10894
I'm using google-api-python-client
to call the Google Drive API.
According to the API's spec, get
should return a JSON with many fields. But my program only returns id
, name
, mimeType
and kind
as follows:
{
"id": <omitted>,
"name": "myfile.txt",
"mimeType": "text/plain",
"kind": "drive#file"
}
How do I get other metadata about a file using this API?
Upvotes: 0
Views: 203
Reputation: 10894
All right. I found the answer. The info on the spec page is incomplete. As pointed out in another page, the API calls accept a fields
parameter which specify the fields to return.
Upvotes: 1