Skip to content

noordstar/elm-matrix-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix-Webhooks

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?_"

How to install

You can install from the Elm package list using the following command:

elm install noordstar/elm-matrix-webhooks

Supported versions

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages