按照API documentation你可以以同樣的方式爲「丟棄」上「sharedWithMe」搜索:如何使用Google Drive API v3搜索** not ** sharedWithMe?
trashed boolean =, != Whether the file is in the trash or not.
sharedWithMe boolean =, != Files that have been shared with the authorized user.
查詢,如「看不上」,「不丟棄」和「丟棄=假」作爲一切工作的預期。另外「sharedWithMe」的作品。
然而,什麼不起作用是「not sharedWithMe」或「sharedWithMe = false」。什麼是正確的語法,或者這是一個錯誤?
實施例:Q =未+ sharedWithMe
錯誤:
"domain": "global",
"reason": "invalid",
"message": "Invalid Value",
"locationType": "parameter",
"location": "q"
渡過了[相同的文檔(https://developers.google.com/drive/v3/web/search-parameters),我注意到'sharedWithMe'字段的'=''和'!=''。所以你的「not sharedWithMe」必須像使用編程一樣使用'!=''。 – noogui
是的,和垃圾一樣。但'sharedWithMe = false'不起作用。我也嘗試過'!sharedWithMe'。沒有運氣。 – rmuller