From 2db93e0b278176b4dd68e8565ddab139d86c6e7b Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 22 Apr 2016 15:25:57 +0000 Subject: Dropbox: links will never be short git-svn-id: http://svn.miranda-ng.org/main/trunk@16746 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/api/account.h | 8 ++++---- plugins/Dropbox/src/api/operations.h | 10 ---------- 2 files changed, 4 insertions(+), 14 deletions(-) (limited to 'plugins/Dropbox/src/api') diff --git a/plugins/Dropbox/src/api/account.h b/plugins/Dropbox/src/api/account.h index 98ba370abe..6943bd29c3 100644 --- a/plugins/Dropbox/src/api/account.h +++ b/plugins/Dropbox/src/api/account.h @@ -5,7 +5,7 @@ class GetAccessTokenRequest : public HttpRequest { public: GetAccessTokenRequest(const char *requestToken) : - HttpRequest(REQUEST_POST, DROPBOX_API_OLD "/oauth2/token") + HttpRequest(REQUEST_POST, DROPBOX_API "/oauth2/token") { AddHeader("Content-Type", "application/x-www-form-urlencoded"); @@ -16,11 +16,11 @@ public: } }; -class DisableAccessTokenRequest : public HttpRequest +class RevokeAccessTokenRequest : public HttpRequest { public: - DisableAccessTokenRequest() : - HttpRequest(REQUEST_POST, DROPBOX_API_OLD "/disable_access_token") + RevokeAccessTokenRequest() : + HttpRequest(REQUEST_POST, DROPBOX_API "/oauth2/token/revoke") { } }; diff --git a/plugins/Dropbox/src/api/operations.h b/plugins/Dropbox/src/api/operations.h index d50b99e734..01f428c88a 100644 --- a/plugins/Dropbox/src/api/operations.h +++ b/plugins/Dropbox/src/api/operations.h @@ -1,16 +1,6 @@ #ifndef _DROPBOX_API_OPERATIONS_H_ #define _DROPBOX_API_OPERATIONS_H_ -class ShareOldRequest : public HttpRequest -{ -public: - ShareOldRequest(const char *token, const char *path) : - HttpRequest(REQUEST_POST, HttpRequestUrlFormat::FORMAT, DROPBOX_API_OLD "/shares/auto/%s", path) - { - AddBearerAuthHeader(token); - } -}; - class ShareRequest : public HttpRequest { public: -- cgit v1.2.3