Today, after I upgraded my disk API to V3, I did not find any method to find the parent of the selected file. Is there a breakpoint left for fetching json related to parent information information?
If you have the file identifier of the file in question, then Files: get you need to add fields, i.e. parents along with the file identifier.
Request
GET https://www.googleapis.com/drive/v3/files/0B5pJkOVaKccENWNNcFFaU2lSM0E?fields=parents&key= {YOUR_API_KEY}
Returns
{ "": [ "0B5pJkOVaKccEYW5lVHBKd1Zwc28" ]}
. , .
.
GET https://www.googleapis.com/drive/v3/files/0B5pJkOVaKccEYW5lVHBKd1Zwc28?key= {YOUR_API_KEY}
{ "kind": "drive # file", "id": "0B5pJkOVaKccEYW5lVHBKd1Zwc28", "name": "SiteBackups", "mimeType": "application/vnd.google-apps.folder" }
, Google Drive API 3 , .:)
3 . , files.get . , . . , .
v2 v3, .
Source: https://habr.com/ru/post/1619829/More articles:Starting and stopping a node.js script automatically - javascriptPolymer, snap to array elements not working - polymerGoogle Cloud Bigtable with Go-go SupportWebRTC video chat for Firefox-to-Chrome and Chrome-to-Firefox not working - firefoxPolymer - renewal element - polymerHow to change rails-bootstrap-forms tab in Rails 4 - htmlНе удается увидеть поле JSON в ответе GET (мангуста) - jsonAndroid geophotography transition triggers - androidCurrency conversion from INR to USD in php - phpHow do we improve performance and unload unnecessary selectors? - javascriptAll Articles