summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/yandex_api.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-09 19:04:44 +0300
committeraunsane <aunsane@gmail.com>2018-03-09 19:05:45 +0300
commit303dd9297732fc943ed3e20ab37587f0c009dfe5 (patch)
tree20957f3c2d2f724dabd3074819a6405c805766fa /plugins/CloudFile/src/Services/yandex_api.h
parent1f71ad2141a4c7d41f806cc4cbaa25cbf321dd73 (diff)
CloudFile: bugfix
- GDrive: fixed authentication - GDrive: fixed upload for small files - Dropbox: increase "create folder" api method version
Diffstat (limited to 'plugins/CloudFile/src/Services/yandex_api.h')
-rw-r--r--plugins/CloudFile/src/Services/yandex_api.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/Services/yandex_api.h b/plugins/CloudFile/src/Services/yandex_api.h
index 56d77feb8c..6c2d97448b 100644
--- a/plugins/CloudFile/src/Services/yandex_api.h
+++ b/plugins/CloudFile/src/Services/yandex_api.h
@@ -4,11 +4,14 @@
namespace YandexAPI
{
#define YANDEX_OAUTH "https://oauth.yandex.ru"
-#define YADISK_API "https://cloud-api.yandex.net/v1/disk/resources"
+#define YADISK_API_VER "/v1"
+#define YADISK_API "https://cloud-api.yandex.net" YADISK_API_VER "/disk/resources"
#define YANDEX_APP_ID "c311a5967cae4efa88d1af97d01ea0e8"
#include "../../../miranda-private-keys/Yandex/client_secret.h"
+#define YANDEX_AUTH YANDEX_OAUTH "/authorize?response_type=code&client_id=" YANDEX_APP_ID
+
class GetAccessTokenRequest : public HttpRequest
{
public: