Compare commits

..

No commits in common. "v3" and "main" have entirely different histories.
v3 ... main

3 changed files with 2 additions and 20 deletions

View File

@ -1 +1,2 @@
# python hello-world
# e236c0219df04e238d02e2bba91bd94f

17
main.py
View File

@ -1,17 +0,0 @@
def main(request):
request_json = request.get_json(silent=True)
if request_json is None:
return "Invalid or no JSON received"
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 f"Received data for {name}"

View File

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