From c28fa98ea8ac09dc173a37cf090e18bede6a15b3 Mon Sep 17 00:00:00 2001 From: Tom Gross Date: Tue, 2 Jun 2020 20:38:30 +0200 Subject: [PATCH] Fix wrong required parameter of downloadlink method --- CHANGES.rst | 6 ++++++ src/pcloud/api.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 8f4b3e9..3e27bf1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,12 @@ Changelog - Missing variable in output in case a directory already exists [blasterspike] +- Fix parameter of downloadlink method + [tomgross] + +- Add more details on authentication error + [yennicks] + 1.0a8 (2020-02-21) ------------------ diff --git a/src/pcloud/api.py b/src/pcloud/api.py index d6c8d52..d847a03 100644 --- a/src/pcloud/api.py +++ b/src/pcloud/api.py @@ -136,7 +136,7 @@ def uploadfile(self, **kwargs): def uploadprogress(self, **kwargs): return self._do_request("uploadprogress", **kwargs) - @RequiredParameterCheck(("links",)) + @RequiredParameterCheck(("url",)) def downloadfile(self, **kwargs): return self._do_request("downloadfile", **kwargs)