mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
27 lines
643 B
Python
27 lines
643 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
import requests
|
|
|
|
LAMBDA_URL = "http://localhost:9000/2015-03-31/functions/function/invocations"
|
|
|
|
payload = {
|
|
"Records": [
|
|
{
|
|
"body": json.dumps(
|
|
{
|
|
"portfolio_id": 556,
|
|
"scenarios_to_consider": [],
|
|
"scenario_priority_order": [],
|
|
"min_property_id": 653150,
|
|
"max_property_id": 653150,
|
|
}
|
|
)
|
|
}
|
|
]
|
|
}
|
|
|
|
response = requests.post(LAMBDA_URL, json=payload)
|
|
|
|
print("Status code:", response.status_code)
|
|
print("Response:")
|
|
print(response.text)
|