|
@@ -20,7 +20,8 @@ def broadcast(this_text):
|
|
|
pprint(this_json)
|
|
pprint(this_json)
|
|
|
url = base_url+webhook
|
|
url = base_url+webhook
|
|
|
print(url)
|
|
print(url)
|
|
|
- response = requests.post(url, json=this_json)
|
|
|
|
|
|
|
+ # response = requests.post(url, json=this_json)
|
|
|
|
|
+ response = requests.post(url, data=this_json)
|
|
|
if response.status_code in [200, 204]:
|
|
if response.status_code in [200, 204]:
|
|
|
print("Webhook executed")
|
|
print("Webhook executed")
|
|
|
else:
|
|
else:
|