Skip to content
Snippets Groups Projects
Commit 4edee955 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Add outbound hooks

parent 443b736b
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,18 @@ New bridges and updates will be posted in this room.
The source code for the bridge is available at [matrix-hookshot](https://github.com/matrix-org/matrix-hookshot) on Github.
Currently enabled features:
- Generic webhooks
- Generic webhooks (inbound, outbound)
For a list of commands see the help:
```
!hookshot help
```
### Generic webhooks
This section covers inbound webhhoks.
Base URL: `https://hookshot.mbot.ethz.ch/webhook/<hook>`
1. Invite [hookshot](https://m.ethz.ch/#/@hookshot:mbot.ethz.ch) (`@hookshot:mbot.ethz.ch`) to your **unencrypted** room
......@@ -36,7 +44,7 @@ Example json payloads:
Example using [httpie](https://httpie.io/):
```bash
http POST "<url>" <<<'<payload>'
http PUT "<url>" <<<'<payload>'
```
Example using `curl`:
......@@ -52,6 +60,14 @@ In the room where webhooks were configured (not admin room):
- List webhooks: `!hookshot webhook list`
- Remove webhook: `!hookshot webhook remove <name>`
### Outbound webhhoks
**Experimental, deleting outbound hooks is not implemented. Use it wisely!**
Use similar steps as for inbound webhooks. See `!hookshot help` for usage
and refer to the [docs](https://matrix-org.github.io/matrix-hookshot/latest/setup/webhooks.html#outbound-webhooks).
## Webhook API (Grafana, Slack)
Base URL: `https://webhooks.mbot.ethz.ch/webhook/<api>/<hook>`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment