raychaser/logspout-http

(FR) Post to Rocket Chat?

Opened this issue · 0 comments

I've tried the default settings to post to my Rocket Chat, but Messages are empty.
I'm sure it wouldn't be too much work to adope support for rocket chat, however i'm not familar with go :(

The Post Should have the following format:

{
  "text": "Example message",
  "attachments": [
    {
      "title": "Rocket.Chat",
      "title_link": "https://rocket.chat",
      "text": "Rocket.Chat, the best open source chat",
      "image_url": "https://rocket.chat/images/mockup.png",
      "color": "#764FA5"
    }
  ]
}

curl -X POST --data-urlencode 'payload={"text":"Example message","attachments":[{"title":"Rocket.Chat","title_link":"https://rocket.chat","text":"Rocket.Chat, the best open source chat","image_url":"https://rocket.chat/images/mockup.png","color":"#764FA5"}]}' https://chat.berndklaus.at/hooks/AUTH_TOKEN