【发布时间】:2016-11-13 19:39:49
【问题描述】:
根据API documentation,您可以像搜索“已删除”一样搜索“sharedWithMe”:
trashed boolean =, != Whether the file is in the trash or not.
sharedWithMe boolean =, != Files that have been shared with the authorized user.
诸如“trashed”、“notrashed”和“trashed=false”之类的查询都按预期工作。 “sharedWithMe”也有效。
但不起作用的是“not sharedWithMe”或“sharedWithMe=false”。什么是正确的语法或这是一个错误?
示例:q=not+sharedWithMe
错误:
"domain": "global",
"reason": "invalid",
"message": "Invalid Value",
"locationType": "parameter",
"location": "q"
【问题讨论】:
-
查看same documentation,我注意到“sharedWithMe”字段的“=”和“!=”。所以你的“not sharedWithMe”必须像编程一样使用'!=''。
-
是的,与已丢弃相同。但是
sharedWithMe=false不起作用。我也试过!sharedWithMe。也没有运气。
标签: google-api google-drive-api