Automatic push from FunctionsAPI

This commit is contained in:
FunctionsAPI 2024-11-13 10:07:34 +00:00
parent 171476f907
commit 762208f40e
3 changed files with 14 additions and 2 deletions

View File

@ -1,2 +1 @@
# 7ff6dd8a01b140a998a6955fc073324d # python hello-world

11
main.py Normal file
View File

@ -0,0 +1,11 @@
import json
def main(request):
str_data = request.get_data(cache=True, as_text=True, parse_form_data=False)
print(str_data)
try:
data = json.loads(str_data)
print(data)
except:
print("Provided data is not a valid json")
return "hello, world"

2
requirements.txt Normal file
View File

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