Created
December 8, 2020 23:49
-
-
Save josephsamela/ea1cfd91245bfe0b6e16432b6ead9751 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
url = "https://outlook.office.com/webhook/<webhookuuid>/IncomingWebhook/<webhookuuid>" | |
payload = json.dumps( | |
{"text":"Hello world!"} | |
) | |
headers = {'Content-Type': 'application/json'} | |
response = requests.request( | |
"POST", | |
url, | |
headers=headers, | |
data=payload | |
) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment