Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 7fa9487

Browse files
committed
Update API version to 4.7
1 parent 8ff0562 commit 7fa9487

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

postnl_api/postnl_api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, user, password):
3030
}
3131

3232
headers = {
33-
'api-version': '4.6',
33+
'api-version': '4.7',
3434
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
3535
'content-type': "application/x-www-form-urlencoded",
3636
}
@@ -63,7 +63,7 @@ def refresh_token(self):
6363
}
6464

6565
headers = {
66-
'api-version': '4.6',
66+
'api-version': '4.7',
6767
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
6868
'content-type': "application/x-www-form-urlencoded",
6969
}
@@ -79,7 +79,7 @@ def get_shipments(self):
7979
""" Retrieve shipments """
8080

8181
headers = {
82-
'api-version': '4.6',
82+
'api-version': '4.7',
8383
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
8484
'authorization': 'Bearer ' + self._access_token
8585
}
@@ -99,7 +99,7 @@ def get_shipment(self, shipment_id):
9999
""" Retrieve single shipment by id """
100100

101101
headers = {
102-
'api-version': '4.6',
102+
'api-version': '4.7',
103103
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
104104
'authorization': 'Bearer ' + self._access_token
105105
}
@@ -119,7 +119,7 @@ def get_profile(self):
119119
""" Retrieve profile """
120120

121121
headers = {
122-
'api-version': '4.6',
122+
'api-version': '4.7',
123123
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
124124
'authorization': 'Bearer ' + self._access_token
125125
}
@@ -139,7 +139,7 @@ def get_letters(self):
139139
""" Retrieve letters """
140140

141141
headers = {
142-
'api-version': '4.6',
142+
'api-version': '4.7',
143143
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
144144
'authorization': 'Bearer ' + self._access_token
145145
}
@@ -164,7 +164,7 @@ def get_letter(self, letter_id):
164164
""" Retrieve single letter by id """
165165

166166
headers = {
167-
'api-version': '4.6',
167+
'api-version': '4.7',
168168
'user-agent': 'PostNL/1 CFNetwork/889.3 Darwin/17.2.0',
169169
'authorization': 'Bearer ' + self._access_token
170170
}

0 commit comments

Comments
 (0)