Skip to content

Commit

Permalink
Fix: Add Params to GetFile
Browse files Browse the repository at this point in the history
  • Loading branch information
sp committed Sep 1, 2023
1 parent b05f02e commit be8f795
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,15 @@ class ProffixClient implements BaseProffixClient {

/// Utility method to directly download a file from PRO/Datei
@override
Future<Response> downloadFile({required String dateiNr}) async {
Future<Response> downloadFile(
{required String dateiNr, Map<String, dynamic>? 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;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit be8f795

Please sign in to comment.