Search for Google Drive files based on new properties resource -


google introduced new feature in google drive sdk ability set properties files, key/value pairs. according blog post on google developers blog can use these properties searchable fields. cannot see in documentation how search files using these properties.

for example: retrieve files property has value x.

i know feature brand new make use of in current project. have missed ?

well find, possible search on drive based on properties param.

check doc. https://developers.google.com/drive/web/search-parameters

code snippet :

resp = newdriveservice.files().list(q="properties has { key='customkeya' , value='customkeyavalue2' , visibility='public' }").execute() 

note : have specify 3 params viz. key, value , visibility while searching. if don't use throw invalid params exception.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -