summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/api
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-22 15:25:57 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-22 15:25:57 +0000
commit2db93e0b278176b4dd68e8565ddab139d86c6e7b (patch)
tree310c2aead02f759b5503cbd2ca9ce3f1857ff6c3 /plugins/Dropbox/src/api
parent7e45d8a15069e165f093d03824300591d7014653 (diff)
Dropbox: links will never be short
git-svn-id: http://svn.miranda-ng.org/main/trunk@16746 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/api')
-rw-r--r--plugins/Dropbox/src/api/account.h8
-rw-r--r--plugins/Dropbox/src/api/operations.h10
2 files changed, 4 insertions, 14 deletions
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: