Showing posts with label Google Drive APIs Explorer. Show all posts
Showing posts with label Google Drive APIs Explorer. Show all posts

2016/10/26

Google Drive APIs Explorer - Listing Files

This post is about how to use query for filtering the file results and selector to specify which fields to include in a partial response.

Listing files in the root folder

Assuming I want to list all the files that are not trashed in the root folder and I want to see the filename, id, and mimeType in the output result. Here is how to for the query in Google Drive APIs Explorer.

Step 1 - Go to https://developers.google.com/drive/v3/reference/files/list.

Step 2 - Select user for the corpus field, enter 'root' in parents and trashed=false for the field for q, and enter files(name,id,mimeType) for the field for fields.