Skip to content

Instantly share code, notes, and snippets.

@gpr
Created October 15, 2019 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpr/65806ec30595ff23da45ae53e28c4d66 to your computer and use it in GitHub Desktop.
Save gpr/65806ec30595ff23da45ae53e28c4d66 to your computer and use it in GitHub Desktop.
[Mattermost Bot Usage]
#!/usr/bin/env bash
curl -i -X POST -H 'Content-Type: application/json' -d '{"channel_id":"<channel-id>", "message":"This is a message from a bot", "props":{"attachments": [{"pretext": "Look some text","text": "This is text"}]}}' -H 'Authorization: Bearer <bot-access-token>' <mattermost-url>/api/v4/posts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment