Files
Gainsight/Scripts/webhook_test.py

27 lines
663 B
Python
Raw Normal View History

2023-11-10 20:36:38 -05:00
import json
import requests
URL = "https://webhooks.workato.com/webhooks/rest/3aa0af60-6363-4cc6-9f2a-34b9e132cc2c/hubspot-webhook"
2023-11-10 20:36:38 -05:00
DATA = {
"payload": {
"company": "ExampleCompany1",
"package": "Advanced",
"segment": "exampleSegment",
"industry": "INDUSTRIAL",
"company_domain": "example_company.com",
"health_category": 1,
"contract_expires": 1716768000000,
"onboarding_stage": "Start",
"onboarding_end_date": ""
},
"params": {},
2023-11-10 20:36:38 -05:00
}
2023-11-10 20:36:38 -05:00
HEADERS = {"content-type": "application/json"}
response = requests.post(URL, data=json.dumps(DATA))
print(response.status_code)
print(response.text)