Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/c7557a7ba583510cbc69 to your computer and use it in GitHub Desktop.
Save mrchrisadams/c7557a7ba583510cbc69 to your computer and use it in GitHub Desktop.
It turns out sending notifications to slack trivial to do. This pleases me
import requests
import json
payload = {'text': "Chris messing about with slack's API" }
jp = json.dumps(payload)
requests.post('https://hooks.slack.com/services/GARBLEDSTRING1/GARBLEDSTRING1/GARBLEDSTRING1',
data=payload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment