【问题标题】:Google Doc's (Spreadsheet) get Revision IdGoogle 文档(电子表格)获取修订 ID
【发布时间】:2013-08-19 18:56:05
【问题描述】:

我正在测试这个页面:

https://developers.google.com/drive/v2/reference/revisions/get#try-it

我找不到修订版 ID,当我尝试输入我认为是修订版 ID 的内容时,会显示一条错误消息:"message": "Revision not found:"

如何找到文件的修订 ID(我正在尝试使用电子表格)?

稍后我会尝试使用(在 java 中):

RevisionList revisions = service.revisions().list(fileId).execute();
return revisions.getItems();

但现在我需要手动操作。

【问题讨论】:

    标签: google-sheets google-docs google-drive-api google-docs-api


    【解决方案1】:

    它工作正常。您需要一些正确的文件 ID 和修订 ID。

    例如 -

    文件 ID = 0Vs336aBx5r3MdHJz1TZaCi1kb0JsOExoSHJDMWFZVUE
    修订 ID = 13723331213000

    步骤 -

    1. 从此处获取有效的文件 ID。试试看 - maxResults = 5 https://developers.google.com/drive/v2/reference/files/list
      从 json 回复中选择任何文件 ID。

    2. 获取此文件的所有修订版 - https://developers.google.com/drive/v2/reference/revisions/list
      试试看 - fieldId = 输入从上述步骤复制的文件 ID。
      从 json 回复中选择任何修订 ID

    3. 现在在这里使用文件 ID 和修订 ID - https://developers.google.com/drive/v2/reference/revisions/get#try-it

    【讨论】:

      猜你喜欢
      • 2017-08-05
      • 1970-01-01
      • 2015-10-21
      • 1970-01-01
      • 1970-01-01
      • 2014-08-08
      • 1970-01-01
      • 2021-03-27
      • 1970-01-01
      相关资源
      最近更新 更多