Hello guys, I’m having trouble sending messages using API.
In my tests I can return all users when I use the string: http://helpnet.com:9090/plugins/restapi/v1/users;
But when using http://helpnet.com:9090/plugins/restapi/v1/messages/users, the broadcast message is not delivered to online users.
Does anyone have any tips on how to solve this?
I am using the material in https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html#ses as support, but without progress.
How does your body looks like and did you also get the status code 201?
Yes! I receive the code 201, the room has been created, but I can’t send the message to a specific group or user! I have 500 code return, when I try to send the message in broadcast.
Another detail is that, after room createed i send invite to user, and i receive the 200 code, but the user not received the invite.
What do you mean with " the room has been created, but I can’t send the message to a specific group or user! " ?
The broadcasting feature: https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html#send-a-broadcast-message just sends a personal (system wide) message to every user, which is currently online (connected with the server).
sorry i meant that the i created the room using this command: http://openserverteste.com:9090/plugins/restapi/v1/chatrooms
but I dont can invite a participant to in the room.
As for the broadcast feature, this is exactly what I’m using and I receive code 500.
excuse me! I had forgotten a detail, I need to send a request for my system via JSON … and it was absent "on one side!
It worked !!!
You still need to send a message to a specific group or user …