How can I send a message using REST APi?
Can I send a message using the HTTP REST API? I know that it supports publishing a message, what about sending a message from one user to another? What is the URL / sample request? Thanks!
Added by Artur Hefczyc about 4 years ago
Sending a message using HTTP REST API is relatively easy. The only drawback is that Tigase does not ship with a REST API call for sending messages to a single user. So you have to implement a call yourself. It is not difficult though. Just take a look at the script code for sending a message to all online users and modify it. Also, normally REST API calls are restricted to administrators, so keep this in mind. If you want to allow for sending messages between normal users through REST API, then it is possible but we strongly advise you not to do this.