In v2, you could make a /filesrequest call fileId in childrento get a list of objects DriveFilethat were the parents of the provided file.
/files
fileId in children
DriveFile
Now you need to make a call /files/:fileId?fields=parents, then make a separate call /files/:parentIdfor each returned parent, possibly turning one call into a dozen.
/files/:fileId?fields=parents
/files/:parentId
Is this correct, and if so, why? This is a huge success in our application, so I hope there is an undocumented method.
"'fileId" " ( /) 2, - . , V2, - , . v3, , .
, , , . v2 , isRoot. , /root , ( , .)
, , , , . , ( .) , , . HTTP-/ .
, , , . , .
, , 2 HTTP- ( , 1000+ , :)
, :
var request = service.Files.List(); request.Q = "('root' in parents)"; var FileListOfParentOnly = request.Execute();
In V3, you can list all the children of a parent, as described here: https://developers.google.com/drive/v3/web/search-parameters
Call example: of https://www.googleapis.com/drive/v3/files?q=parents in '0Byho0qAdzabmVl8xcDR1S0pNY3c'course, replace the spaces with %20, this will display all the files in the folder withid='0Byho0qAdzabmVl8xcDR1S0pNY3c'
https://www.googleapis.com/drive/v3/files?q=parents in '0Byho0qAdzabmVl8xcDR1S0pNY3c'
%20
id='0Byho0qAdzabmVl8xcDR1S0pNY3c'
Source: https://habr.com/ru/post/1625560/More articles:Abbreviation to declare "return type" in typescript - typescriptThe DbContext instance cannot be used inside OnConfiguring because it is still configured at this point - asp.net-coreMake column "immutable" in SQLAlchemy - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1625558/nuget-cant-resolve-a-dependency-when-updating-a-local-package-with-dependencies-from-online-repositories-using-visual-studio-2015-update-1&usg=ALkJrhh-BUAcf5yrrwzqj9-Suuvl7hgfVQcombine and sum two data frames where the columns correspond to python pandas - pythonHow to handle batch jobs without Hangfire Pro - c #Node.js как удалить\редактировать данные внутри json файла на сервере - jsonЧто делает оператор в сценариях сборки FAKE? - f#https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1625564/pandas-compress-column-names-to-cell-values-where-true&usg=ALkJrhiYYUoPHgsSZDTMS6ZT9pN1qXqbwwnode.js request a webpage with asynchronous scripts - javascriptAll Articles