Automatic push from FunctionsAPI

This commit is contained in:
FunctionsAPI 2025-06-24 12:36:26 +00:00
parent bd1604f89f
commit 3efb57d9e0
3 changed files with 26 additions and 2 deletions

View File

@ -1,2 +1 @@
# 80c2a4eaab3b4f0da4ff080e00322f24
# python hello-world

23
main.py Normal file
View File

@ -0,0 +1,23 @@
def main(request):
request_json = request.get_json(silent=True)
print(request)
if request_json is None:
return {
'testing':'HELLO WORLD',
}
name = request_json.get("name", "No Name Provided")
email = request_json.get("email", "No Email Provided")
phone = request_json.get("phone", "No Phone Provided")
address = request_json.get("address", "No Address Provided")
print(f"Name: {name}")
print(f"Email: {email}")
print(f"Phone: {phone}")
print(f"Address: {address}")
return {
'testing':'HELLO WORLD'
}

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
functions-framework==1.4.3
markupsafe==2.0.1