Skip to content

Instantly share code, notes, and snippets.

@omerxx
Created January 23, 2017 12:24
Show Gist options
  • Save omerxx/0dc3ff05b2470e19088ae142094c5905 to your computer and use it in GitHub Desktop.
Save omerxx/0dc3ff05b2470e19088ae142094c5905 to your computer and use it in GitHub Desktop.
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