Automatic push from FunctionsAPI
This commit is contained in:
parent
171476f907
commit
762208f40e
11
main.py
Normal file
11
main.py
Normal 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
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