Files
Gainsight/Scripts/webhook_test.py
2023-12-06 16:28:43 -05:00

27 lines
663 B
Python

import json
import requests
URL = "https://webhooks.workato.com/webhooks/rest/3aa0af60-6363-4cc6-9f2a-34b9e132cc2c/hubspot-webhook"
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": {},
}
HEADERS = {"content-type": "application/json"}
response = requests.post(URL, data=json.dumps(DATA))
print(response.status_code)
print(response.text)