【发布时间】:2016-01-12 03:42:15
【问题描述】:
-
根据 Google Drive 文档,要按名称查询文件,您将使用:q="name = 'file name'"。
https://developers.google.com/drive/v3/web/search-parameters
-
当我在这里尝试按名称搜索时:https://developers.google.com/drive/v2/reference/files/list#try-it
将“q”字段设置为“name = 'file_name'”。
“参数‘q’的值无效。”被退回。
当我尝试在 Python 中执行命令时会发生同样的情况:\
service.files().list(q="name = 'file_name'").execute()q="trashed=false" 等其他命令工作正常。不知道为什么“名称”查询没有。
【问题讨论】:
标签: google-drive-api