Windows provides libraries, quick access, and some file hosting service like OneDrive on the sidebar of file explorer. Request bodyĭo not supply a request body with this method.Most of the files on the system are accessible through Windows file explorer. For more information, see the authentication and authorization page. Some scopes are restricted and require a security assessment for your app to use them. This request allows authorization with at least one of the following scopes: Scope Whether the requesting application supports both My Drives and shared drives.ĭeprecated use supportsAllDrives instead. Supported values are 'drive' and 'appDataFolder'. See the " Search for files" guide for the supported syntax.Ī comma-separated list of spaces to query within the corpus.
This should be set to the value of 'nextPageToken' from the previous response.Ī query for filtering the file results. The token for continuing a previous list request on the next page. Partial or empty result pages are possible even before the end of the files list has been reached.Īcceptable values are 1 to 1000, inclusive. The maximum number of files to return per page. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. Example usage: ?orderBy=folder,modifiedTime desc,name. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Only 'published' is supported.ĭeprecated use includeItemsFromAllDrives instead.Ī comma-separated list of sort keys. Specifies which additional view's permissions to include in the response. Whether both My Drive and shared drive items should be included in results.Ī comma-separated list of IDs of labels to include in the labelInfo part of the response. For more information, see Return specific fields for a file. For development you can use the special value * to return all fields, but you'll achieve greater performance by only selecting the fields you need. If not specified, the response includes a default set of fields specific to this method. The paths of the fields you want included in the response. If a user has permissions on a Shared Drive, the files inside it won't be retrieved unless the user has created, opened, or shared the file. " user": Files owned by or shared to the user." domain": Files shared to the user's domain.When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.
Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). Groupings of files to which the query applies. Request HTTP request GET Parameters Parameter name If you don't want trashed files to appear in the list, use the trashed=false query parameter to filter trashed files from the results. Note: This method returns all files by default, including trashed files. For more information, see the Search for files guide. This method accepts the q parameter, which is a search query combining one or more search terms.