summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/yandex_api.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-04-21 20:45:34 +0300
committeraunsane <aunsane@gmail.com>2018-04-21 20:45:53 +0300
commita74debb40c3df12738c722548c556a97e5976036 (patch)
treef3c2e224d75b64de547778625122d6242e558f36 /plugins/CloudFile/src/Services/yandex_api.h
parent803e7b0b5e7c84a814601141fcb7634516eefa30 (diff)
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
Diffstat (limited to 'plugins/CloudFile/src/Services/yandex_api.h')
-rw-r--r--plugins/CloudFile/src/Services/yandex_api.h4
1 files changed, 4 insertions, 0 deletions
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");
}
};
};