Skip to content

Commit 5df5114

Browse files
Merge tag '1.13.0' into develop
Release 1.13.0
2 parents e06520c + f487783 commit 5df5114

File tree

9 files changed

+4896
-3845
lines changed

9 files changed

+4896
-3845
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
## [Unreleased](https://github.com/bunq/sdk_python/tree/HEAD)
44

5-
[Full Changelog](https://github.com/bunq/sdk_python/compare/1.10.2...HEAD)
5+
[Full Changelog](https://github.com/bunq/sdk_python/compare/1.10.16...HEAD)
6+
7+
**Implemented enhancements:**
8+
9+
- Python SDK Refactor [\#117](https://github.com/bunq/sdk_python/pull/117) ([angelomelonas](https://github.com/angelomelonas))
10+
11+
## [1.10.16](https://github.com/bunq/sdk_python/tree/1.10.16) (2019-06-17)
12+
[Full Changelog](https://github.com/bunq/sdk_python/compare/1.10.2...1.10.16)
613

714
**Closed issues:**
815

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.2
1+
1.13.0

bunq/sdk/http/api_client.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ApiClient:
5757
HEADER_RESPONSE_ID_LOWER_CASED = 'x-bunq-client-response-id'
5858

5959
# Default header values
60-
USER_AGENT_BUNQ = 'bunq-sdk-python/1.10.16'
60+
USER_AGENT_BUNQ = 'bunq-sdk-python/1.13.0'
6161
GEOLOCATION_ZERO = '0 0 0 0 NL'
6262
LANGUAGE_EN_US = 'en_US'
6363
REGION_NL_NL = 'nl_NL'
@@ -114,8 +114,6 @@ def _request(self,
114114
BunqContext.update_api_context(self._api_context)
115115

116116
all_headers = self._get_all_headers(
117-
method,
118-
uri_relative_with_params,
119117
request_bytes,
120118
custom_headers
121119
)
@@ -150,8 +148,6 @@ def _append_params_to_uri(cls,
150148
return uri
151149

152150
def _get_all_headers(self,
153-
method: str,
154-
endpoint: str,
155151
request_bytes: bytes,
156152
custom_headers: Dict[str, str]) -> Dict[str, str]:
157153
headers = self._get_default_headers()
@@ -161,10 +157,7 @@ def _get_all_headers(self,
161157
headers[self.HEADER_AUTHENTICATION] = self._api_context.token
162158
headers[self.HEADER_SIGNATURE] = security.sign_request(
163159
self._api_context.installation_context.private_key_client,
164-
method,
165-
endpoint,
166-
request_bytes,
167-
headers
160+
request_bytes
168161
)
169162

170163
return headers

0 commit comments

Comments
 (0)