import requests,urllib.error, json, re ################# # Webhook Vars: # ################# #webhook_endpoint = "https://webhooks.thezengarden.net/web/webhook-callback-poc" #webhook_token = "5S2OtSb9KXWDyV8xYl4_Rvucz2KZHyFDRkFbRzLj78yP" webhook_endpoint = "https://webhooks.thezengarden.net/web/webhook-callback-poc?token=5S2OtSb9KXWDyV8xYl4_Rvucz2KZHyFDRkFbRzLj78yP" print("sending webhook payload...") # webhook_auth_header = {'Token': webhook_token } webhook_payload = {'webhook-callback-poc': "This is a sample message sent to a webhook."} resp = requests.post(webhook_endpoint, headers=webhook_auth_header, json = webhook_payload) print("payload sent!") print(resp) print(webhook_endpoint) print(webhook_auth_header) print(webhook_payload)