summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/api/operations.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/api/operations.h')
-rw-r--r--plugins/Dropbox/src/api/operations.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Dropbox/src/api/operations.h b/plugins/Dropbox/src/api/operations.h
index 01f428c88a..c451e4190c 100644
--- a/plugins/Dropbox/src/api/operations.h
+++ b/plugins/Dropbox/src/api/operations.h
@@ -1,11 +1,11 @@
#ifndef _DROPBOX_API_OPERATIONS_H_
#define _DROPBOX_API_OPERATIONS_H_
-class ShareRequest : public HttpRequest
+class GetTemporaryLinkRequest : public HttpRequest
{
public:
- ShareRequest(const char *token, const char *path, time_t expires = 0) :
- HttpRequest(REQUEST_POST, DROPBOX_API_RPC "/sharing/create_shared_link_with_settings")
+ GetTemporaryLinkRequest(const char *token, const char *path) :
+ HttpRequest(REQUEST_POST, DROPBOX_API_RPC "/files/get_temporary_link")
{
AddBearerAuthHeader(token);
AddHeader("Content-Type", "application/json");
@@ -13,9 +13,6 @@ public:
JSONNode root(JSON_NODE);
root << JSONNode("path", path);
- if (expires)
- root << JSONNode("expires", (unsigned int)expires);
-
json_string data = root.write();
SetData(data.c_str(), data.length());
}