Google文件的(试算表)取得修订编号 [英] Google Doc's (Spreadsheet) get Revision Id
问题描述
我正在测试此页面:
https://developers.google.com/drive/v2/reference/revisions/get#try-it
我找不到修订版本ID,当我尝试输入类似我认为的修订版本ID时,会显示错误消息:"message":找不到修订版本:" >
我如何找到文件的修订ID(我正在尝试使用电子表格)?
稍后我将尝试使用(在Java中):
RevisionList revisions = service.revisions().list(fileId).execute();
return revisions.getItems();
但是现在我需要手动进行.
工作正常.您需要一些正确的文件ID和修订ID.
例如-
文件ID = 0Vs336aBx5r3MdHJz1TZaCi1kb0JsOExoSHJDMWFZVUE
修订ID = 13723331213000
步骤-
-
从此处获取有效的文件ID.试试看-maxResults = 5 https://developers.google.com/drive/v2/reference/files/list
从json回复中选择任何文件ID. -
获取此文件的所有修订版本- https://developers .google.com/drive/v2/reference/revisions/list
试试看-fieldId =输入从上述步骤复制的文件ID.
从json回复中选择任何修订ID -
现在在此处使用文件ID和修订ID- https://developers.google.com/drive/v2/reference/revisions/get#try-it
I'm testing this page:
https://developers.google.com/drive/v2/reference/revisions/get#try-it
I can't find the revision id and when i try put something like i think is the revision id, an error is displayed saying: "message": "Revision not found: "
How i can find the revision id of the file (i'm trying for Spreadsheet)?
Later i'll try to use (in java):
RevisionList revisions = service.revisions().list(fileId).execute();
return revisions.getItems();
But for now i need to do manually.
It works fine. You need some correct file id and revision id.
For eg -
File Id = 0Vs336aBx5r3MdHJz1TZaCi1kb0JsOExoSHJDMWFZVUE
Revision Id = 13723331213000
Steps -
Get a valid File Id from here. In try it out - maxResults = 5 https://developers.google.com/drive/v2/reference/files/list
From the json reply select any file id.Get all the revisions for this file - https://developers.google.com/drive/v2/reference/revisions/list
Try it out - fieldId = enter the File Id copied from above step.
From the json reply select any revision idNow use the File Id and Revision Id here - https://developers.google.com/drive/v2/reference/revisions/get#try-it
这篇关于Google文件的(试算表)取得修订编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!