From 3015506dd89c72b1ea64c41149ad13b2e977ac3b Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Fri, 10 Nov 2023 20:36:38 -0500 Subject: [PATCH] Webhook tester script created. --- Scripts/webhook_test.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Scripts/webhook_test.py diff --git a/Scripts/webhook_test.py b/Scripts/webhook_test.py new file mode 100644 index 00000000..72827d82 --- /dev/null +++ b/Scripts/webhook_test.py @@ -0,0 +1,22 @@ +import json +import requests + +URL = "https://webhooks.workato.com/webhooks/rest/3aa0af60-6363-4cc6-9f2a-34b9e132cc2c/hubspot-webhook" +DATA = { + "health_category": "Test value", + "package": "Test value", + "contract_expires": "Test value", + "segment": "Test value", + "onboarding_end_date": "Test value", + "onboarding_stage": "Test value", + "full_name": "Test value", + "email": "Test value", + "company": "Test value", + "industry": "Test value", +} +HEADERS = {"content-type": "application/json"} + + +response = requests.post(URL, data=json.dumps(DATA)) +print(response.status_code) +print(response.text)