我正在尝试获取“我的云端硬盘”中的文件夹列表并请求“https://www.googleapis.com/drive/v2/files 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
效果很好。
Here https://developers.google.com/drive/web/search-parameters https://developers.google.com/drive/web/search-parameters没有提到任何有关sharedWithMe的信息,真正的检查是不可能的。那么这是有意的行为吗?
有没有更好的方法来获取“我的云端硬盘”的文件夹列表而不是此查询?
正确的查询是
mimeType = 'application/vnd.google-apps.folder' 和 trashed = false 以及 writers 和 shareWithMe 中的 'me'
没有 = 假
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)