summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.py b/main.py
index 50ded468..203d0229 100644
--- a/main.py
+++ b/main.py
@@ -115,12 +115,15 @@ def api_call(version, endpoint_path):
query_parameters[param] = int(query_parameters[param])
except:
pass
+
+ body_parameters = json.loads(request.get_data())
# Create and call request
message = {
'id': 0,
'method': request.method,
'parameters': {
+ 'body': body_parameters,
'path': path_parameters,
'query': query_parameters
},