Google Docs API-根据建议编辑文本 [英] Google Docs API - Edit Text as Suggestion

查看:78
本文介绍了Google Docs API-根据建议编辑文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Docs API提到了如何获取具有建议的文档(跟踪更改),但没有说明如何向文档添加建议.

The Google Docs API mentions how to get a document with suggestion (track changes), but it says nothing about how to add a suggestion to a document.

您如何使用Google Docs API或Apps脚本在文档中插入编辑建议?

How would you insert an edit suggestion in a document using the Google Docs API or Apps Script ?

推荐答案

答案:

很遗憾,当前无法通过API向Google文档提出建议.

正如您已经指出的那样,当前仅可以查看建议的修改,但不创建它们.除了缺少端点外,您还可以在批量更新请求文档页面,也没有建议的条目.

As you've pointed out already, it is currently only possible to view suggested edits but not create them. Aside from the lack of endpoint for them, you can see in the Batch Update and request documentation pages, that there are no entries for suggestions either.

但是,如果您确实希望将其添加到Docs API中(并随后添加到Apps脚本中),则可以转到Google的

If you really want this to be added to the Docs API (and therefore subsequently in Apps Script) however, you can head over to Google's Issue Tracker and submit a Feature Request asking for this to be implemented.

我知道这通常是个坏消息,但我希望这对您有帮助!

I know this is generally bad news, but I hope this is helpful to you!

  • Working with suggestions
  • Method: `documents.batchUpdate
  • Requests
  • Google's Issue Tracker

这篇关于Google Docs API-根据建议编辑文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆