2 ms·
fwiw, in Matrix, to send a message, it's: curl 'https://matrix.org/_matrix/client/r0/rooms/!RXNcERlITUVszBNIPW%3Amatrix.org/send/m.room.message/123?access_to
by Arathorn 8y ago
fwiw, in Matrix, to send a message, it's:
curl 'https://matrix.org/_matrix/client/r0/rooms/!RXNcERlITUVszBNIPW%3Amatrix.org/send/m.room.message/123?access_token='$TOKEN -X PUT --data '{"msgtype":"m.text","body":"hello world"}'
and to receive messages it's:
curl 'https://matrix.org/_matrix/client/r0/sync?access_token='$TOKEN
Hopefully this ends up being quite easy to work with :)
- edhelas 8y agoand for XMPP <message to="user@server.com"><body>Hello world</body></message> No need for a token, the socket you're in is already authenticated :)