import json import requests # Execution url = "https://prod-87.westus.logic.azure.com:443/workflows/8668c48a41314c33aa638e26fece29d0/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6B3FyAQIV_9X-4Y4KoCaf3rFw7tmyrHfjZJPNA0J4y0" # Payload Test # url = "https://prod-134.westus.logic.azure.com:443/workflows/05f2bcab728e4d2f919b234472340493/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=ENyWJ867C83WLFeWQ0u-gzwSDiev3V1nN-e04GLx3Xc" data = { "module": "testmodule", "process": "testprocess", "email_list": ["munuvar@blueoceansp.ai", "ikalil@blueoceansp.ai"], # "payload": { # "Day": 1, # "Month": 1, # "Year": 2023 # } } data = json.dumps(data) headers = { "Content-Type": "application/json" } response = requests.post(url=url, headers=headers,data=data) print(response) print(response.content)