Scintilla templates for new launch. Trying to clean up Zenjob's workflow.
This commit is contained in:
21
Scripts/Zenjob/workato-webhook-gsheets.py
Normal file
21
Scripts/Zenjob/workato-webhook-gsheets.py
Normal file
@ -0,0 +1,21 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
with open('./sample_payload.json', 'r') as file:
|
||||
input = json.load(file)
|
||||
|
||||
def main(input):
|
||||
# input = input['input']
|
||||
for items in input['payload']['data']['included']:
|
||||
if items['type'] == 'quizzes':
|
||||
try:
|
||||
if items['name'] == 'Deutsch Einstufungstest':
|
||||
print('quiz!')
|
||||
except TypeError as h:
|
||||
print(h)
|
||||
|
||||
elif items['type'] == 'people':
|
||||
print('people')
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(input)
|
||||
Reference in New Issue
Block a user