mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 12:50:27 +00:00
Update documentation (api)
This commit is contained in:
parent
359d0f2910
commit
46b798ac1b
@ -718,7 +718,9 @@ enable=true
|
|||||||
#account="api.local"
|
#account="api.local"
|
||||||
#channel="api"
|
#channel="api"
|
||||||
#To send data to the api:
|
#To send data to the api:
|
||||||
#curl -XPOST -H 'Content-Type: application/json' -d '{"text":"test","username":"randomuser"}' http://localhost:4242/api/message
|
#curl -XPOST -H 'Content-Type: application/json' -d '{"text":"test","username":"randomuser","gateway":"gateway1"}' http://localhost:4242/api/message
|
||||||
|
#To read from the api:
|
||||||
|
#curl http://localhost:4242/api/messages
|
||||||
|
|
||||||
#If you want to do a 1:1 mapping between protocols where the channelnames are the same
|
#If you want to do a 1:1 mapping between protocols where the channelnames are the same
|
||||||
#e.g. slack and mattermost you can use the samechannelgateway configuration
|
#e.g. slack and mattermost you can use the samechannelgateway configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user