We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc1e4cd commit e189ba0Copy full SHA for e189ba0
airflow/requirements/modules.py
@@ -34,11 +34,12 @@ def send_post_request(platform, categoryId):
34
url = ""
35
if platform == 'HP':
36
url = os.getenv("HOMEPLUS_SERVICE_URL")
37
+ headers = {"Content-Type": "application/json"}
38
+ data = json.dumps({"category_id": categoryId})
39
+ response = requests.post(url, headers=headers, data=data)
40
elif platform == 'OA':
41
url = os.getenv("OASIS_SERVICE_URL")
- headers = {"Content-Type": "application/json"}
- data = json.dumps({"category_id": categoryId})
- response = requests.post(url, headers=headers, data=data)
42
+ response = requests.post(url)
43
44
if response.status_code == 200:
45
print(f"Success: {response.json()}")
0 commit comments