File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ Add documentation for the setup widget.
Original file line number Diff line number Diff line change @@ -59,6 +59,33 @@ The Real Time Messaging (RTM) API is the newer and recommended way to use the br
5959 link --channel_id CHANNELID --room !the-matrix:room.id --slack_bot_token xoxb-xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx
6060 ```
6161
62+ ## Setup Widget
63+
64+ A user interface is provided in the form of a Matrix widget which can be used within a room to link and unlink channels.
65+
66+
67+ 
68+
69+ ### Configuration
70+
71+ In order to use the setup widget, it must be enabled along with the provisioning API:
72+
73+ ```yaml
74+ provisioning:
75+ enabled: true
76+ widget: true
77+ ```
78+
79+ The widget will be hosted on the same port as the appservice by default, at the path ` /_matrix/provision/v1/static ` .
80+
81+ ### Usage
82+
83+ Invite the bridge user to the Matrix room, then add the widget like this (where ` example.com ` is a public route to your bridge's provisioning API):
84+
85+ ```
86+ /addwidget https://example.com/_matrix/provision/v1/static/?roomId=$matrix_room_id&widgetId=$matrix_widget_id
87+ ```
88+
6289## Webhooks
6390
6491Linking rooms with webhooks is not the recommended way for most situations,
You can’t perform that action at this time.
0 commit comments