I hereby claim:
- I am haadem on github.
- I am haadem (https://keybase.io/haadem) on keybase.
- I have a public key ASAmpySr2jm0itIhn4AyP1sVblJNd263lrD_UcKiU0jmcQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ''' | |
| This is an example of how to send data to Slack webhooks in Python with the | |
| requests module. | |
| Detailed documentation of Slack Incoming Webhooks: | |
| https://api.slack.com/incoming-webhooks | |
| ''' | |
| import json | |
| import requests |
| ''' | |
| This is an example of how to send data to Slack webhooks in Python with the | |
| requests module. | |
| Detailed documentation of Slack Incoming Webhooks: | |
| https://api.slack.com/incoming-webhooks | |
| ''' | |
| import json | |
| import requests |
| import urllib | |
| import urllib.request | |
| import json | |
| def post(url, data): | |
| data = json.dumps(data).encode('utf8') | |
| req = urllib.request.Request( | |
| url, data=data, headers={'content-type': 'application/json'}) | |
| return urllib.request.urlopen(req) |