Created
October 15, 2019 19:57
-
-
Save gpr/65806ec30595ff23da45ae53e28c4d66 to your computer and use it in GitHub Desktop.
[Mattermost Bot Usage]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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