Embedding Code

Kei

Kei

Aug 13, 2024

1 min read

Type ``` to start embedding code snippet.

def send_notification_to_slack(webhook_url, message):
    payload = {'text': message}
    response = requests.post(webhook_url, json=payload)
    return response.status_code

Comments

Add a comment
    Kei

    Written by Kei

    Co-founder of Glasp