Skip to content

Commit 61e02c5

Browse files
committed
Fix post data
1 parent 226fd96 commit 61e02c5

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

finterion/services.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,16 @@ def get_orders(api_key, query_params, base_url):
5555
return handle_response(response)
5656

5757

58-
def get_order(api_key, query_params, base_url):
59-
url = get_retrieve_order_url(base_url, query_params["order_id"])
60-
response = requests.get(
61-
url, headers={"XApiKey": api_key}, params=query_params
62-
)
58+
def get_order(api_key, order_id, base_url):
59+
url = get_retrieve_order_url(base_url, order_id)
60+
response = requests.get(url, headers={"XApiKey": api_key})
6361
return handle_response(response)
6462

6563

6664
def create_order(api_key, data, base_url):
6765
url = create_order_url(base_url)
68-
response = requests.post(
69-
url, headers={"XApiKey": api_key}, json=json.dumps(data)
70-
)
66+
headers = {"XApiKey": api_key, "Content-Type": "application/json"}
67+
response = requests.post(url, headers=headers, data=json.dumps(data))
7168
return handle_response(response)
7269

7370

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (0, 6, 0, 'alpha', 0)
1+
VERSION = (0, 6, 1, 'alpha', 0)
22

33

44
def get_version(version=None):

0 commit comments

Comments
 (0)