diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d26d56..c15874c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release Note +## v0.3.4 + +- Add Params to GetFile +- Update deps + ## v0.3.3 - Fix big sized Upload Datei / Download Datei diff --git a/lib/src/client.dart b/lib/src/client.dart index 5acd451..d07fca9 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -438,13 +438,15 @@ class ProffixClient implements BaseProffixClient { /// Utility method to directly download a file from PRO/Datei @override - Future downloadFile({required String dateiNr}) async { + Future downloadFile( + {required String dateiNr, Map? params}) async { try { String pxsessionid = await getPxSessionId(); + final downloadUri = _getUriUrl( buildUriPx(restURL, [_options.apiPrefix, _options.version, "PRO/Datei/$dateiNr"]), - null); + params); _dioClient.options.headers["PxSessionId"] = pxsessionid; diff --git a/pubspec.yaml b/pubspec.yaml index ebb4f48..a821670 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_proffix_rest description: A Dart wrapper for Proffix Rest API with automatic login and logout and many useful helper functions -version: 0.3.3 +version: 0.3.4 repository: https://github.com/pitwch/dart_proffix_rest homepage: https://github.com/pitwch/dart_proffix_rest environment: