![]() Client libraries handle this encoding automatically. Note: These examples use the unencoded q parameter, where name = 'hello' is encoded as The client library you use for your search. This table shows some basic query strings. Q: mimeType = 'application/' Query string examples To restrict the search to folders, use the query string to set the MIME type to Page_token = response.get('nextPageToken', None)įields: 'nextPageToken, files(id, name)',Ĭonsole.log('Found file: ', file.name, file.id) Response = drive_service.files().list(q="mimeType='image/jpeg'", setFields("nextPageToken, files(id, name)") Note: If you're using the older Drive API v2, you can find code samples inįileList result = driveService.files().list() ThisĮxample also sets spaces to drive to further narrow the search to the MimeType query term to narrow results to files of type image/jpeg. Results to file names and IDs of JPEG image files. The following example shows how to use a client library to filter search
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |