Google Drive SDK不会为Google Docs格式返回headRevisionId [英] Google Drive SDK not returning headRevisionId for google Docs format
问题描述
我一直在研究谷歌驱动器同步机制。我正在使用Google Drive Python SDK。我遇到的问题是,谷歌SDK不返回headRevisionId是文件资源的元数据,如果文件是谷歌MimeType,即它已经创建与谷歌文档。对我来说,存储headRevisionId非常重要。
用户从本地机器上传的文件的元数据中包含headRevisionId。这个问题仅适用于那些google文档。
我如何获得headRevisionId这样的文件。任何解决方法吗?
感谢
Akif
我看到相同的行为,尽管消息表明问题已得到解决:主版本不符合Google Docs格式的要求。
现在,我在Google Doc中检索headRevisionId的方式是单独调用,以列出fileId上的修订版(drive.revisions.list)。
管理修订的详细信息: https://开发人员。 google.com/drive/manage-revisions
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.
Files which are uploaded by user from his local machine does have headRevisionId in its metadata. this issue is for only those google docs.
How do i get headRevisionId of such files. any workaround for this?
Thanks Akif
I'm seeing the same behavior, despite messages indicating the issue was addressed: Head revision not working as intended for Google Docs formats.
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.
Details on managing revisions: https://developers.google.com/drive/manage-revisions
这篇关于Google Drive SDK不会为Google Docs格式返回headRevisionId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!