Quantcast
Channel: User Jay Lee - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Answer by Jay Lee for How to pass the fields parameter into a google drive python API call

$
0
0

API v2:

results = drive_service.files().list(fields='items(id,mimeType,title)', **body).execute()

you can easily figure out what the fields value should look like using API Explorer:

https://developers.google.com/apis-explorer/#p/drive/v2/drive.files.list

API v3:

results = drive_service.files().list(fields='files(id,mimeType,name)', **body).execute()

https://developers.google.com/apis-explorer/#p/drive/v3/drive.files.list

yes, the requests are automatically gzipped. You can turn on http traffic logging to confirm. see:

https://developers.google.com/api-client-library/python/guide/logging


Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>