diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-03-03 15:43:38 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-03-03 15:43:38 +0000 |
commit | e5287627d957b092d11ba8031e4d30dc7f79cbd5 (patch) | |
tree | 97aa1ecb756c4ec15c1999ee92efc2de551332d0 /plugins/Dropbox/src/api | |
parent | 999fdaa2662a1fe8937ec110232a78e87d79bfe7 (diff) |
Dropbox: fallback to v1 api to support shorten urls
git-svn-id: http://svn.miranda-ng.org/main/trunk@16406 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/api')
-rw-r--r-- | plugins/Dropbox/src/api/operations.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/api/operations.h b/plugins/Dropbox/src/api/operations.h index 01f428c88a..d50b99e734 100644 --- a/plugins/Dropbox/src/api/operations.h +++ b/plugins/Dropbox/src/api/operations.h @@ -1,6 +1,16 @@ #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:
|