跟进术语,寻找行动项目
Term for followup, looking for actionitems
我想写一个快速脚本来提醒自己放在各种 google 文档上的后续行动项目,出于 google 驱动器以从 API 列表中受益().但是,followup:actionitems
搜索查询似乎不适用于 API,因为搜索词未知。它 returns 一个 400 错误。
例如,这样做:
results = service.files().list(q="followup:actionitems",
pageSize=50,
pageToken=page_token,
fields="nextPageToken, files(id, name)").execute()
结果:
Traceback (most recent call last):
File "./reminder.py", line 49, in <module>
main()
File "./reminder.py", line 38, in main
fields="nextPageToken, files(id, name)").execute()
File "/home/x/.virtualenvs/gdocs-followup-reminder-7WeAWiqi/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/x/.virtualenvs/gdocs-followup-reminder-7WeAWiqi/lib/python3.7/site-packages/googleapiclient/http.py", line 856, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/drive/v3/files?q=followup%3Aactionitems&pageSize=50&fields=nextPageToken%2C+files%28id%2C+name%29&alt=json returned "Invalid Value">
有什么我想念的吗?用法不对?或者以后有没有计划?
q 参数非常好,它可以让您在 Google 驱动器中搜索文件和目录。但是,它不允许您搜索文件的所有属性。据我所知,后续行动项目不是其中之一。
据我所知,Google 文档 api 没有用于搜索文件内容的 q 参数。
我真的认为 followup:actionitems
超出了 Google 驱动器的范围 api 它只是一个文件存储 api 它不跟踪任何设置您在 Google 驱动器 Web 应用程序中设置。正如您从 file.resource 对象中看到的那样,该对象甚至不正确地位于 google 驱动器 api
中的文件中
您可以将 q
参数设置为
fullText contains 'followup:actionitems' and trashed = false
returns 与 Google 驱动器 UI 相同的文件
我想写一个快速脚本来提醒自己放在各种 google 文档上的后续行动项目,出于 google 驱动器以从 API 列表中受益().但是,followup:actionitems
搜索查询似乎不适用于 API,因为搜索词未知。它 returns 一个 400 错误。
例如,这样做:
results = service.files().list(q="followup:actionitems",
pageSize=50,
pageToken=page_token,
fields="nextPageToken, files(id, name)").execute()
结果:
Traceback (most recent call last):
File "./reminder.py", line 49, in <module>
main()
File "./reminder.py", line 38, in main
fields="nextPageToken, files(id, name)").execute()
File "/home/x/.virtualenvs/gdocs-followup-reminder-7WeAWiqi/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/x/.virtualenvs/gdocs-followup-reminder-7WeAWiqi/lib/python3.7/site-packages/googleapiclient/http.py", line 856, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/drive/v3/files?q=followup%3Aactionitems&pageSize=50&fields=nextPageToken%2C+files%28id%2C+name%29&alt=json returned "Invalid Value">
有什么我想念的吗?用法不对?或者以后有没有计划?
q 参数非常好,它可以让您在 Google 驱动器中搜索文件和目录。但是,它不允许您搜索文件的所有属性。据我所知,后续行动项目不是其中之一。
据我所知,Google 文档 api 没有用于搜索文件内容的 q 参数。
我真的认为 followup:actionitems
超出了 Google 驱动器的范围 api 它只是一个文件存储 api 它不跟踪任何设置您在 Google 驱动器 Web 应用程序中设置。正如您从 file.resource 对象中看到的那样,该对象甚至不正确地位于 google 驱动器 api
您可以将 q
参数设置为
fullText contains 'followup:actionitems' and trashed = false
returns 与 Google 驱动器 UI 相同的文件