mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
28 lines
583 B
Python
28 lines
583 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(
|
|
{
|
|
"pashub_link": "https://google.co.uk",
|
|
"uprn": "123456",
|
|
"hubspot_deal_id": "1",
|
|
}
|
|
)
|
|
}
|
|
]
|
|
}
|
|
|
|
response = requests.post(LAMBDA_URL, json=payload)
|
|
|
|
print("Status code:", response.status_code)
|
|
print("Response:")
|
|
print(response.text)
|