Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78a656b745 |
17
main.py
Normal file
17
main.py
Normal file
@ -0,0 +1,17 @@
|
||||
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}"
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
functions-framework==1.4.3
|
||||
markupsafe==2.0.1
|
||||
Loading…
Reference in New Issue
Block a user