This library is a wrapper for the Matrix-Webhook API used to send messages to a room. It is a minimalistic way to send messages to a Matrix room using a webhook.
import Matrix.Webhooks as MW
webhook : Webhook
webhook =
MW.toWebhook
"https://example.com"
"your-secret-api-key"
"!abcdef:example.org"
send : String -> Cmd msg
send = MW.sendMessage toMsg webhook
-- send "hi mom!"
-- send "I _support_ **Markdown**!"
-- send "Pretty cool, _huh?_"
You can install from the Elm package list using the following command:
elm install noordstar/elm-matrix-webhooks
The current repository supports the following Matrix-Webhook versions:
The API is designed to be backwards compatible so this list might not be complete: future versions will likely still be compatible.