Google docs API: 文档,评论和书签在哪里?
Google docs API: Document, where are the comments and bookmarks?
每个 https://developers.google.com/docs/api/reference/rest/v1/documents/get
我可以检索文档
结果的结构如 https://developers.google.com/docs/api/reference/rest/v1/documents#Document
中所述
但是我缺少文档的书签和评论。它们既不在该描述中,也不在现实世界中检索到的对象中。
是否可以从 google-doc 中检索评论 and/or 书签?
关于书签:
很遗憾,在当前阶段,无法通过 Google 文档 API 检索书签。因为源书签 ID 无法通过 Docs API 检索,而书签 ID 可以从链接到书签的文本中检索。
- 文档 API 现在正在增长。所以我觉得管理书签的方法会在以后的更新中加入。
解决方法:
作为当前的解决方法,我认为使用 Google Apps 脚本创建的 Web 应用程序可以用作 API 来实现上述情况。 Document service of Google Apps Script can retrieve the bookmark ID. Ref
关于评论:
可以通过云端硬盘中的评论方法检索评论API。 Docs API.
无法检索评论
参考文献:
每个 https://developers.google.com/docs/api/reference/rest/v1/documents/get 我可以检索文档
结果的结构如 https://developers.google.com/docs/api/reference/rest/v1/documents#Document
中所述但是我缺少文档的书签和评论。它们既不在该描述中,也不在现实世界中检索到的对象中。
是否可以从 google-doc 中检索评论 and/or 书签?
关于书签:
很遗憾,在当前阶段,无法通过 Google 文档 API 检索书签。因为源书签 ID 无法通过 Docs API 检索,而书签 ID 可以从链接到书签的文本中检索。 - 文档 API 现在正在增长。所以我觉得管理书签的方法会在以后的更新中加入。
解决方法:作为当前的解决方法,我认为使用 Google Apps 脚本创建的 Web 应用程序可以用作 API 来实现上述情况。 Document service of Google Apps Script can retrieve the bookmark ID. Ref
关于评论:
可以通过云端硬盘中的评论方法检索评论API。 Docs API.
无法检索评论