0
通过电子邮件复制。用于系统通知的Quickblox REST API
我想知道,有没有办法在REST API中发送系统消息,就像iOS API一样。 我在文档中尝试过“系统通知”,但它返回错误。
下面是我发给服务器的REST请求。我在发送这个令牌之前使用令牌登录。
curl -X POST \
-H "QB-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "chat_dialog_id=xxxxxxxxxxxxxxxxxxxxxxx&recipient_id=xxxxxxx&extraParams.moduleIdentifier=SystemNotifications&sys_msg_type=update_group&type=headline&send_to_chat=1" \
https://api.quickblox.com/chat/Message.xml
这将使消息作为普通消息发送。 这样做的目的是发送SystemMessage/SystemNofications。 根据quickblox中的doc: 对于任何系统通知都有一个特殊通道。最终用户可以使用它来分割常规聊天消息和其他系统事件。 所有这些消息都应该包含extraParams.moduleIdentifier = SystemNotifications并使用type = headline。 – cck