Skip to content

Commit 4cdb02f

Browse files
committed
Merge remote-tracking branch 'origin/develop' into python-PSD2-update
2 parents 32d0383 + 5df5114 commit 4cdb02f

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
@@ -59,7 +59,7 @@ class ApiClient:
5959
HEADER_RESPONSE_ID_LOWER_CASED = 'x-bunq-client-response-id'
6060

6161
# Default header values
62-
USER_AGENT_BUNQ = 'bunq-sdk-python/1.10.16'
62+
USER_AGENT_BUNQ = 'bunq-sdk-python/1.13.0'
6363
GEOLOCATION_ZERO = '0 0 0 0 NL'
6464
LANGUAGE_EN_US = 'en_US'
6565
REGION_NL_NL = 'nl_NL'
@@ -116,8 +116,6 @@ def _request(self,
116116
BunqContext.update_api_context(self._api_context)
117117

118118
all_headers = self._get_all_headers(
119-
method,
120-
uri_relative_with_params,
121119
request_bytes,
122120
custom_headers
123121
)
@@ -152,8 +150,6 @@ def _append_params_to_uri(cls,
152150
return uri
153151

154152
def _get_all_headers(self,
155-
method: str,
156-
endpoint: str,
157153
request_bytes: bytes,
158154
custom_headers: Dict[str, str]) -> Dict[str, str]:
159155
headers = self._get_default_headers()
@@ -163,10 +159,7 @@ def _get_all_headers(self,
163159
headers[self.HEADER_AUTHENTICATION] = self._api_context.token
164160
headers[self.HEADER_SIGNATURE] = security.sign_request(
165161
self._api_context.installation_context.private_key_client,
166-
method,
167-
endpoint,
168-
request_bytes,
169-
headers
162+
request_bytes
170163
)
171164

172165
return headers

0 commit comments

Comments
 (0)