Google Drive SDK“sharedWithMe = false”搜索查询不起作用

时间:2014-07-01 16:26:22

标签: google-drive-api

我试图获取"我的云端硬盘"中的文件夹列表并要求" https://www.googleapis.com/drive/v2/files"使用此搜索查询:

mimeType = 'application/vnd.google-apps.folder' and trashed = false and 'me' in writers and sharedWithMe = false

但它给出了这个错误:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Value",
    "locationType": "parameter",
    "location": "q"
   }
  ],
  "code": 400,
  "message": "Invalid Value"
 }
}

但是当我使用sharedWithMe = true时,它运行正常。

此处https://developers.google.com/drive/web/search-parameters未提及有关sharedWithMe的任何内容,因此无法进行真正的检查。它的意图是什么行为?

是否有更好的方法来获取"我的云端硬盘"而是这个查询?

0 个答案:

没有答案