python - get list of files with titles in folder -
so i'm getting files via google drive api on this:
get https://www.googleapis.com/drive/v2/files/{...}/children?q={...}
but json returned doesn't seem include title of files. instead it's more like
{ ... "items": [[{u'kind': u'drive#childreference', u'childlink': u'https://www.googleapis.com/drive/v2/files/...', u'id': u'...', u'selflink': u'https://www.googleapis.com/drive/v2/files/.../children/...'}, ...] }
are applications forced create get
on each of items titles? seems inefficient.
the request using intended list children of folder limited information. maybe useful utilize files list request restrictive query like
https://www.googleapis.com/drive/v2/files?q='0b7gsb83y7lcsmhuwewfrutlbeeu'+in+parents&key={your_api_key}
this way lot more of info each node, can limit info receive using fields parameter, like
https://www.googleapis.com/drive/v2/files?q='0b7gsb83y7lcsmhuwewfrutlbeeu'+in+parents&fields=items%2fdescription&key={your_api_key}
you can build fields parameters , know options have using "fields editor" provided in help page, search there "use fields editor"
hope helps, regards
python google-drive-sdk
No comments:
Post a Comment