Skip to content

Fox-McCloud-MX/webhook-slack-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webhook Slack Sender

Webhook slack sender msg to channel.

Consume this endpoint by POST method..

http://localhost:8088/webhook/slack/sender

Body.

{
    "channel": "{CHANNEL}",
    "userName": "{USERNAME}",
    "iconEmoji": "{ICON}",
    "msgText": "{MESSAGE}",
    "webhookURL": "https://hooks.slack.com/services/{WEBHOOK_ID}"
}

cURL.

curl --location --request POST 'http://localhost:8088/webhook/slack/sender' \
--header 'Content-Type: application/json' \
--data-raw '{
    "channel": "{CHANNEL}",
    "userName": "{USERNAME}",
    "iconEmoji": "{ICON}",
    "msgText": "{MESSAGE}",
    "webhookURL": "{WEBHOOK_ID}"
}'

Releases

No releases published

Packages

No packages published

Languages