From 1347611d117b025651a3e2a92d02cc9fd3ec56d3 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Mon, 20 May 2019 18:12:35 -0400 Subject: [PATCH] Updated Notify_mattermost (markdown) --- Notify_mattermost.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Notify_mattermost.md b/Notify_mattermost.md index 827826d..638e0ed 100644 --- a/Notify_mattermost.md +++ b/Notify_mattermost.md @@ -8,10 +8,14 @@ To use this plugin, you need to first set yourself up with http://mattermost.com ### Syntax Valid syntaxes are as follows: -* **mmost**://**{hostname}**/**{webhook_id}** -* **mmost**://**{hostname}**:**{port}**/**{webhook_id}** +* **mmost**://**{hostname}**/**{authtoken}** +* **mmost**://**{hostname}**:**{port}**/**{authtoken}** +* **mmost**://**{botname}**@**{hostname}**/**{authtoken}** +* **mmost**://**{botname}**@**{hostname}**:**{port}**/**{authtoken}** * **mmosts**://**{hostname}**/**{webhook_id}** -* **mmosts**://**{hostname}**:**{port}**/**{webhook_id}** +* **mmosts**://**{hostname}**:**{port}**/**{authtoken}** +* **mmosts**://**{botname}**@**{hostname}**/**{webhook_id}** +* **mmosts**://**{botname}**@**{hostname}**:**{port}**/**{authtoken}** Secure connections (via https) should be referenced using **mmosts://** where as insecure connections (via http) should be referenced via **mmost://**. @@ -19,14 +23,15 @@ Secure connections (via https) should be referenced using **mmosts://** where as | Variable | Required | Description | ----------- | -------- | ----------- | hostname | Yes | The server Mattermost is listening on. -| webhook_id | Yes | The WebHook ID you would have gotten after setting up the Mattermost server +| authtoken | Yes | The Authentication Toekn (the WebHook ID) you would have gotten after setting up the Mattermost server | port | No | The server port Mattermost is listening on. By default the port is **8065**. +| botname | No | An optional botname you can associate with your post #### Example Send a secure Mattermost notification to our server ```bash # Assuming our {hostname} is mattermost.server.local -# Assuming our {webhook_id} is 3ccdd113474722377935511fc85d3dd4 +# Assuming our {authtoken} is 3ccdd113474722377935511fc85d3dd4 apprise mmosts://mattermost.server.local/3ccdd113474722377935511fc85d3dd4 ``` \ No newline at end of file