Skip to content

Instantly share code, notes, and snippets.

View jhonatancasale's full-sized avatar
🏠
Working from home

Jhonatan Casale jhonatancasale

🏠
Working from home
View GitHub Profile
@devStepsize
devStepsize / slack_webhook_post.py
Last active August 7, 2023 09:28
POST a JSON payload to a Slack Incoming Webhook using Python 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