From a74debb40c3df12738c722548c556a97e5976036 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 21 Apr 2018 20:45:34 +0300 Subject: CloudFile: - fix #1278 - decrease volume of response data with fields filtering - fix uploading for gdrive and onedrive in some cases - simplifying upload code - version bump --- plugins/CloudFile/src/Services/yandex_api.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/CloudFile/src/Services/yandex_api.h') diff --git a/plugins/CloudFile/src/Services/yandex_api.h b/plugins/CloudFile/src/Services/yandex_api.h index 19c76d61f9..91db0290a1 100644 --- a/plugins/CloudFile/src/Services/yandex_api.h +++ b/plugins/CloudFile/src/Services/yandex_api.h @@ -1,6 +1,7 @@ #ifndef _YANDEXSERVICE_API_H_ #define _YANDEXSERVICE_API_H_ +// https://tech.yandex.ru/disk/api/concepts/about-docpage/ namespace YandexAPI { #define YANDEX_OAUTH "https://oauth.yandex.ru" @@ -60,6 +61,7 @@ namespace YandexAPI { AddOAuthHeader(token); AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path))); + AddUrlParameter("fields=href"); if (strategy == OnConflict::REPLACE) AddUrlParameter("overwrite=true"); } @@ -98,6 +100,7 @@ namespace YandexAPI { AddOAuthHeader(token); AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path))); + AddUrlParameter("fields=href"); } }; @@ -120,6 +123,7 @@ namespace YandexAPI { AddOAuthHeader(token); AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path))); + AddUrlParameter("fields=public_url"); } }; }; -- cgit v1.2.3