Project

General

Profile

How to send message by http api without login?

mike sun
Added 3 months ago

I want to send message directly by http api without login.
I have follow the link: https://docs.tigase.net/tigase-server/7.1.0/Administration_Guide/webhelp/_sending_messages_through_rest.html#_usage .
But I can not send message success before I login the accout in other client.

this is my post body:

<message from='10000091@xxx.cn/web' to='cadf801942c740758e21cc85336f688f@xx.cn' type='groupchat' id='1e1d788fe26d42589b8f0b11c2bd6086' xmlns='jabber:client'><body> message</body></message>

Afer I login the accout in web client, the message can be send sussess.

somebody can help me ? thanks!


Replies (1)

Added by Wojciech Kapcia TigaseTeam 3 months ago

mike sun wrote:

<message … type='groupchat' </message>

You are trying to send MUC message, and in order to correctly deliver it user has to join destination room first - otherwise the message would be rejected.

    (1-1/1)