Webhook tester script created.
This commit is contained in:
22
Scripts/webhook_test.py
Normal file
22
Scripts/webhook_test.py
Normal file
@ -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)
|
||||
Reference in New Issue
Block a user