python - 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
解决方案
推荐阅读
- php - PHPUnit Symfony:如何使用多个参数模拟相同的方法?
- clang - 在 C++ 中使用 TList 时未解决的外部错误
- sapui5 - SAP UI5 中包含五个单元格的网格
- sql - 在正则表达式中查找字符串(日期)的倒数第二个出现
- sql - 带背景颜色的 SQL 结果
- pandas - 如何在没有标题的情况下转换一列熊猫系列
- fullcalendar - Fullcalendar-如何调整小时渲染
- python - 从 keras Python 加载 mnist 数据集时出现连接错误
- scala - 类型安全连接与 Spark 数据集的安全性比我预期的要低
- javascript - 尝试在单击时加载外部插件不起作用