从电子邮件复制。
我想知道,有没有办法在REST API中发送System Message,就像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
答案 0 :(得分:0)
extraParams.moduleIdentifier
- 错误的参数名称
您不能在参数名称
中使用.
如果您想在extra_params
内设置自定义参数,则需要设置参数moduleIdentifier
而不需要extraParams.