changeset 108:794eb11abd89

Update API use
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 25 Oct 2020 09:02:04 +0100
parents 6db793957730
children 4a7ec9903b31
files manual_demo/Cargo.lock manual_demo/src/main.rs manual_demo/src/photoslibrary_v1_types.rs
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/manual_demo/Cargo.lock	Sun Oct 25 08:57:28 2020 +0100
+++ b/manual_demo/Cargo.lock	Sun Oct 25 09:02:04 2020 +0100
@@ -20,7 +20,7 @@
 
 [[package]]
 name = "async-google-apis-common"
-version = "0.1.4"
+version = "0.1.5"
 dependencies = [
  "anyhow",
  "chrono",
--- a/manual_demo/src/main.rs	Sun Oct 25 08:57:28 2020 +0100
+++ b/manual_demo/src/main.rs	Sun Oct 25 09:02:04 2020 +0100
@@ -76,7 +76,7 @@
 
     let mut dst = fs::OpenOptions::new().write(true).create(true).open("test.odt").unwrap();
 
-    let resp = cl.export(&params, &mut dst).await.unwrap();
+    let resp = cl.export(&params, Some(&mut dst)).await.unwrap();
     println!("{:?}", resp);
 }
 
@@ -97,7 +97,7 @@
     let file_id = resp.id.unwrap();
     let mut params = drive::FilesGetParams::default();
     params.file_id = file_id.clone();
-    println!("{:?}", cl.get(&params).await.unwrap());
+    println!("{:?}", cl.get(&params, None).await.unwrap());
 }
 
 async fn get_about(cl: &mut TlsClient, auth: &mut Authenticator) {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/manual_demo/src/photoslibrary_v1_types.rs	Sun Oct 25 09:02:04 2020 +0100
@@ -0,0 +1,1 @@
+../../generate/gen/photoslibrary_v1_types.rs
\ No newline at end of file