Created
January 23, 2017 12:24
-
-
Save omerxx/0dc3ff05b2470e19088ae142094c5905 to your computer and use it in GitHub Desktop.
This file contains 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
payload = {"channel": "#general", "username": "webhookbot", "text": "Testing slack webhook", "icon_emoji": ":ghost:"} | |
url = 'https://hooks.slack.com/services/0000000000/0000000000/0000000000' | |
requests.post(url, data=json.dumps(payload)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment