从电子邮件复制。
我想知道,有没有办法在 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
extraParams.moduleIdentifier
- 参数名称错误
不能在参数名称中使用.
如果要在extra_params
内部设置自定义参数,则需要设置参数moduleIdentifier
而不extraParams.