comparison mod_rest/README.md @ 6471:be2f75957552

mod_rest/README.md: Mention muc_bot in the readme.
author Menel <menel@snikket.de>
date Tue, 17 Mar 2026 10:51:25 +0100
parents cf5f0a20e16a
children
comparison
equal deleted inserted replaced
6470:61428a339079 6471:be2f75957552
144 - `oob` 144 - `oob`
145 - `payload` 145 - `payload`
146 - `ping` 146 - `ping`
147 - `stats` 147 - `stats`
148 - `version` 148 - `version`
149
150 ### Message in a MUC
151
152 To interact with a MUC isn't as easy, since one needs to join with an online resource.
153 There is a helper module [mod_muc_bot], to simplify this.
154 After loading [mod_muc_bot] on the muc component, one can send a groupchat message like:
155
156 ```
157 curl https://xmpp.example.com/rest/message/groupchat/room@muc.example.com \
158 -d body="beep boop" \
159 -d nick="Botty"
160 ```
149 161
150 ## Receiving stanzas 162 ## Receiving stanzas
151 163
152 TL;DR: Set this webhook callback URL, get XML `POST`-ed there. 164 TL;DR: Set this webhook callback URL, get XML `POST`-ed there.
153 165
609 - Versioned API, i.e. /v1/stanzas 621 - Versioned API, i.e. /v1/stanzas
610 - Bind resource to webhook/callback 622 - Bind resource to webhook/callback
611 623
612 # Compatibility 624 # Compatibility
613 625
614 Requires Prosody trunk / 0.12 626 Requires Prosody >= 0.12