RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.48k stars 10.54k forks source link

Incoming WebHooks #1501

Closed engelgabriel closed 8 years ago

engelgabriel commented 8 years ago

Implement 100% compatible Slack Incoming Webhooks API.

See spec here: https://api.slack.com/incoming-webhooks

Final acceptance test

This sample curl command for posting to a channel:

curl -X POST --data-urlencode 'payload={"text": "This is posted to <#general> and comes from *monkey-bot*.", "channel": "#general", "username": "monkey-bot", "icon_emoji": ":monkey_face:"}' https://demo.rocket.chat/services/TOKEN

Will be displayed in the #general channel as:

image

Subtasks

image

engelgabriel commented 8 years ago

1528 is a duplicate of this issue

vetash commented 8 years ago

I want it so much.

graywolf336 commented 8 years ago

@vetash It was added with #1613. :smile:

geekgonecrazy commented 8 years ago

@vetash coming to a Rocket.Chat near you. Soon ;) like @graywolf336 said it was added. I don't think it has been released in master yet, and I think we have one more item to finish.

engelgabriel commented 8 years ago

It will be on master on monday.

vetash commented 8 years ago

Current version in master.zip is include integration is worked fine! :+1: Thank you very much! But does not work on private chanel :(

vetash commented 8 years ago

Also need to add "attachments" and other formatting like is slack https://api.slack.com/docs/formatting Is very usefull for messages of monitoring system like zabbix or something. Please add it too :smile:

engelgabriel commented 8 years ago

that's all done develop @vetash

vetash commented 8 years ago

Oh. Sorry for my inattentive

engelgabriel commented 8 years ago

Ehehehe.. no worries

juanluisbaptiste commented 8 years ago

When this feature is ready, we will be able to use for example this script ? https://github.com/ericoc/zabbix-slack-alertscript

geekgonecrazy commented 8 years ago

@juanluisbaptiste This feature is actually complete 😄

And yes absolutely should work with Rocket.Chat. Just create an integration in Administration->Integrations Then take the url and use just like you would the slack url from that projects README.

Here: https://github.com/ericoc/zabbix-slack-alertscript/blob/master/slack.sh#L4 you would just put your Rocket.Chat integration url

juanluisbaptiste commented 8 years ago

Excellent, thanks !