Spaces:
Runtime error
Runtime error
Commit
·
469c1d0
1
Parent(s):
977adf2
Update TechdocsAPI/backend/services/auth/utils/functools.py
Browse files
TechdocsAPI/backend/services/auth/utils/functools.py
CHANGED
@@ -6,4 +6,5 @@ def post_request(url: str, data: Dict[str, Any], headers: Dict[str, str]=None):
|
|
6 |
json_data = json.dumps(data)
|
7 |
headers = headers or {'Content-type': 'application/json', 'Accept': 'application/json'}
|
8 |
response = requests.post(url, data=data, headers=headers)
|
|
|
9 |
return response.status_code
|
|
|
6 |
json_data = json.dumps(data)
|
7 |
headers = headers or {'Content-type': 'application/json', 'Accept': 'application/json'}
|
8 |
response = requests.post(url, data=data, headers=headers)
|
9 |
+
print(response.json())
|
10 |
return response.status_code
|