A
A
Andrew7132020-07-28 11:15:09
API
Andrew713, 2020-07-28 11:15:09

How to find a file by name via Google Drive API?

I'm trying to find a file on disk by name .

Authorization was successful.
I make a GET request:

https://www.googleapis.com/drive/v3/files?name='СГ2020.pdf'&mimeType=application/pdf


For some reason, the response comes with a list of all files from the disk, including the required one. Can I somehow get one file with the exact name match in the response?

PS: I tried all variations with/without quotes, tried to search without .pdf at the end, tried to search only by name, only by mimeType, all the same, the full list of files always comes in response. It seems that the method simply does not see the parameters.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-07-28
@dimonchik2013

how about in latin?
if somehow deal with encodings and escaping

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question