【发布时间】:2022-09-23 18:09:09
【问题描述】:
我可以使用以下(使用 google-drive3 Rust crate)列出 Google Doc 的修订列表,它为我提供了来自 Google Drive 中选定文件的“活动”选项卡中的信息。但是,我想要从打开的 Google Doc 中访问的详细版本历史记录,其中包含文件 -> 版本历史记录 -> 查看版本历史记录。除了 Google Drive 中显示的信息外,这还显示了修订涉及的 Doc 的哪些部分。是否可以从 Google Drive API 或 Google Docs API 访问此更详细版本历史记录的数据?
let hub = google_drive3::DriveHub::new(
google_docs1::hyper::Client::builder().build(
google_docs1::hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.https_or_http()
.enable_http1()
.enable_http2()
.build(),
),
auth,
);
let activity = hub
.revisions()
.list(\"<document id>\")
.doit()
.await;
for rev in activity.unwrap().1.revisions.unwrap() {
dbg!(rev);
}
-
您能否解释一下您正在查看哪些字段以及您希望看到的结果?从您的问题来看,您并不清楚您缺少/期望什么。
标签: rust google-api google-drive-api google-docs google-docs-api