Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drive API children.list q parameter broken

The query string in try it section does not work 12 hours ago. My query string is mimeType = 'application/vnd.google-apps.folder' Anyway not work with any query. https://developers.google.com/drive/v2/reference/children/list Please tellme why??

like image 885
Remy Ticona Avatar asked Aug 08 '13 20:08

Remy Ticona


1 Answers

I'm having the same issue:

child.Q = "mimeType = 'application/vnd.google-apps.folder' and title contains 'SomeDocuments'"
Dim cl As ChildList = child.Fetch

it returns all the documents like there was no filter

Maybe something change on Google Drive API?

Update I can't find anything from Google, I wrote a feedback in the child list page. The only workaround so far is instead of using the children.list use the file.list method and in the q section add the - 'folderid' in parents - search term to emulate searching on childrens of the parent folder. The drawback is it will only search for document that has folderid as parent, not sub-folders like children.list method do.

Update 2 Looks like Google fixed it! Happy coding.

like image 89
Jesus Mogollon Avatar answered Nov 15 '22 01:11

Jesus Mogollon