首页 > 解决方案 > Google Drive API - 获取修订列表

问题描述

使用 Python 版本的 Google Drive API,在尝试列出文档的修订时,我得到不一致的结果。

我不断得到不一致的结果数量。我尝试设置pageSize为较小的数字和设置nextPageToken,但仍然没有运气。我在版本 2 和版本 3 中都看到了这个问题。我还尝试使用 Javascript Web API 调用,但得到了相同的结果。

其他人遇到过这个问题吗?

service.revisions().list(fileId=file_id, pageToken=page_token, fields='nextPageToken, items(modifiedDate, lastModifyingUserName, selfLink)').execute()

即使使用 API 资源管理器,对同一文档的后续调用也会得到不同的结果。也许这个错误只出现在具有一定数量修订的文档中?:https ://developers.google.com/drive/api/v2/reference/revisions/list

标签: pythongoogle-drive-apigoogle-docs-apigoogle-apis-explorer

解决方案


推荐阅读