changeset 104:981f7beb9db3

Adapt upload URL paths
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 25 Oct 2020 08:09:46 +0100
parents 7aa7ac3ae82d
children 2f22414d6cea
files drive_example/Cargo.lock drive_example/src/drive_v3_types.rs
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/drive_example/Cargo.lock	Sun Oct 25 08:03:07 2020 +0100
+++ b/drive_example/Cargo.lock	Sun Oct 25 08:09:46 2020 +0100
@@ -29,7 +29,7 @@
 
 [[package]]
 name = "async-google-apis-common"
-version = "0.1.4"
+version = "0.1.5"
 dependencies = [
  "anyhow",
  "chrono",
--- a/drive_example/src/drive_v3_types.rs	Sun Oct 25 08:03:07 2020 +0100
+++ b/drive_example/src/drive_v3_types.rs	Sun Oct 25 08:09:46 2020 +0100
@@ -4007,7 +4007,7 @@
 pub async fn create_resumable_upload<'client>(
     &'client mut self, params: &FilesCreateParams, req: &File) -> Result<ResumableUpload<'client, File>> {
 
-    let rel_path = "upload/drive/v3/files";
+    let rel_path = "resumable/upload/drive/v3/files";
     let path = "https://www.googleapis.com/".to_string() + &rel_path;
     let tok;
     if self.scopes.is_empty() {
@@ -4279,7 +4279,7 @@
 pub async fn update_resumable_upload<'client>(
     &'client mut self, params: &FilesUpdateParams, req: &File) -> Result<ResumableUpload<'client, File>> {
 
-    let rel_path = "upload/drive/v3/files/{fileId}";
+    let rel_path = "resumable/upload/drive/v3/files/{fileId}";
     let path = "https://www.googleapis.com/".to_string() + &rel_path;
     let tok;
     if self.scopes.is_empty() {