Google Drive SDK not returning headRevisionId for google Docs format(Google Drive SDK 未返回 google Docs 格式的 headRevisionId)
问题描述
我一直在研究谷歌驱动器同步机制.我正在为此使用 Google Drive Python SDK.我遇到的问题是,如果文件是 google MimeType,google SDK 不返回 headRevisionId 是文件资源的元数据,即它是使用 google 文档创建的.存储 headRevisionId 对我来说很重要.
I have been working on google drive sync mechanism. I am using Google Drive Python SDK for it. The issue i am having is that the google SDK does not return headRevisionId is file resource's metadata if the file is google MimeType i.e it has been created with google docs. Its important for me to store headRevisionId.
用户从本地机器上传的文件在其元数据中确实包含 headRevisionId.此问题仅适用于那些 google 文档.
Files which are uploaded by user from his local machine does have headRevisionId in its metadata. this issue is for only those google docs.
如何获取此类文件的 headRevisionId.有什么解决方法吗?
How do i get headRevisionId of such files. any workaround for this?
谢谢阿基夫
推荐答案
我看到了相同的行为,尽管消息表明问题已得到解决:Head revision 无法按预期适用于 Google Docs 格式.
I'm seeing the same behavior, despite messages indicating the issue was addressed: Head revision not working as intended for Google Docs formats.
目前,我在 Google Doc 上检索 headRevisionId 的方法是单独调用以列出 fileId 上的修订 (drive.revisions.list).
For now the way I retrieve headRevisionId on a Google Doc is to make a separate call to list revisions (drive.revisions.list) on the fileId.
有关管理修订的详细信息:https://developers.google.com/drive/manage-修订
Details on managing revisions: https://developers.google.com/drive/manage-revisions
这篇关于Google Drive SDK 未返回 google Docs 格式的 headRevisionId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Google Drive SDK 未返回 google Docs 格式的 headRevision
基础教程推荐
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
