23 lines
624 B
Python
23 lines
624 B
Python
|
|
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)
|