Spaces:
Runtime error
Runtime error
Commit
·
a2666ab
1
Parent(s):
469c1d0
Update TechdocsAPI/backend/services/auth/utils/functools.py
Browse files
TechdocsAPI/backend/services/auth/utils/functools.py
CHANGED
@@ -5,6 +5,5 @@ import json
|
|
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=
|
9 |
-
print(response.json())
|
10 |
return response.status_code
|
|
|
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=json_data, headers=headers)
|
|
|
9 |
return response.status_code
|