0
我想發送一條消息,我打電話給api。發送消息mongoose-im不成功
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"caller":"maituanmte%40localhost","to":"admin%40localhost","body": "Hi all"}' 'http://localhost:8088/api/messages'
status = 204和body response no content。但是,當我通過
curl -X GET --header 'Accept: application/json' 'http://localhost:8088/api/messages/admin%40localhost'
然後狀態= 200和體= [](沒有郵件)得到的消息。我有交換管理員和maituanmte但結果相同。
請幫幫我。謝謝
謝謝michalwski。這是賴特。默認情況下,mod_man未啓用。 –