2

尽管 Google Docs 文档在 URL 中似乎有一个唯一的 ID,但我想知道是否有一种方法可以在不再次下载的情况下获取文档的哈希(MD5、SHA1)。有没有人尝试过类似的事情?我可以进行一些 API 调用吗?

4

1 回答 1

5

对于存储在 Google Docs 上的文件,文档列表条目中提供了 md5 校验和:

<!-- Given for files only. An MD5 checksum used to verify the contents of this file. -->
<!-- Some old files are being processed. Those files will not have this element yet. -->
<docs:md5Checksum>2b01142f7481c7b056c4b410d28f33cf</docs:md5Checksum>

对于 Google Docs 文档,您可以使用“Etag”元素来检查更改。

于 2012-04-05T22:31:20.650 回答