mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
update readme, doc, and status / return codes
This commit is contained in:
@@ -10,6 +10,7 @@ environment variables:
|
||||
- `MATRIX_URL`: the url of the matrix homeserver
|
||||
- `MATRIX_ID`: the user id of the bot on this server
|
||||
- `MATRIX_PW`: the password for this user
|
||||
- `API_KEY`: a secret to share with the users of the service
|
||||
|
||||
## Dev
|
||||
|
||||
@@ -33,6 +34,6 @@ docker-compose up -d
|
||||
## Test / Usage
|
||||
|
||||
```
|
||||
curl -d '{"text":"new contrib from toto: http://radio.localhost/map/#44", "key": "secret"}' matrixwebhook.localhost/!FwpsPdeIYWcXDVpRmO:matrix.org
|
||||
curl -d '{"text":"new contrib from toto: http://radio.localhost/map/#44", "key": "secret"}' 'matrixwebhook.localhost/!FwpsPdeIYWcXDVpRmO:matrix.org'
|
||||
```
|
||||
(or matrixwebhook.localhost:4785 without docker)
|
||||
(or localhost:4785 without docker)
|
||||
|
||||
Reference in New Issue
Block a user