mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
28 lines
643 B
Python
28 lines
643 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
import requests
|
|
|
|
HOST = "localhost"
|
|
PORT = "9000"
|
|
|
|
LAMBDA_URL = f"http://{HOST}:{PORT}/2015-03-31/functions/function/invocations"
|
|
|
|
payload = {
|
|
"Records": [
|
|
{
|
|
"body": json.dumps(
|
|
{
|
|
"task_id": "e31f2f21-175b-4a91-a3ec-a6baa325e917",
|
|
"sub_task_id": "8673913b-1a88-42d7-8578-0449123d94b0",
|
|
"hubspot_deal_id": "254427203793",
|
|
}
|
|
)
|
|
}
|
|
]
|
|
}
|
|
|
|
response = requests.post(LAMBDA_URL, json=payload)
|
|
|
|
print("Status code:", response.status_code)
|
|
print("Response:")
|
|
print(response.text)
|