【问题标题】:Google docs API: Document, where are the comments and bookmarks?Google docs API:文档,评论和书签在哪里?
【发布时间】:2019-11-19 23:01:30
【问题描述】:

根据https://developers.google.com/docs/api/reference/rest/v1/documents/get 我可以检索文档

结果的结构如https://developers.google.com/docs/api/reference/rest/v1/documents#Document中所述

但我缺少文档的书签和 cmets。它们既不在该描述中,也不在现实世界中检索到的对象中。

是否可以从 google-doc 中检索 cmets 和/或书签?

【问题讨论】:

  • 关于书签,遗憾的是,在当前阶段,Google Docs API 无法检索书签。因为 Docs API 无法检索源书签 ID,而可以从链接到书签的文本中检索书签 ID。关于 cmets,可以通过 Drive API 中的 Comments 方法获取 cmets。 Docs API 无法检索 cmets。 Ref如果我误解了你的问题,我深表歉意。
  • @Tanaike,感谢您的回复,我认为是正确的(随时将其添加为答案,我会标记为已接受)
  • 感谢您的回复。我将其发布为答案。你能确认一下吗?

标签: google-apps-script google-docs-api


【解决方案1】:

关于书签:

很遗憾,在当前阶段,Google Docs API 无法检索书签。因为 Docs API 无法检索源书签 ID,而可以从链接到书签的文本中检索书签 ID。 - Docs API 现在正在增长。所以我认为管理书签的方法会在以后的更新中加入。

解决方法:

作为当前的解决方法,我认为使用 Google Apps 脚本创建的 Web 应用程序可能能够用作实现上述情况的 API。 Document service of Google Apps Script 可以检索书签 ID。 Ref

关于cmets:

可以通过 Drive API 中的 Comments 方法检索 cmets。 Docs API 无法检索 cmets。

参考资料:

【讨论】:

    猜你喜欢
    • 2017-08-22
    • 1970-01-01
    • 2014-07-01
    • 1970-01-01
    • 2013-11-17
    • 2014-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多