Quickblox REST API for System Notification

2019-09-12 21:13发布

问题:

Copied from email.

I would like to know, is there a way to send System Message in REST API, which just like the iOS API. I have tried "System Notifications" in the documents, but it returns error.

Below is my REST request sent to server. I logged in using the token before send this one.

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

回答1:

extraParams.moduleIdentifier - wrong name of parameter

You cannot use . in name of parameter

if you want to set custom parameter inside extra_params then you need to set parameter moduleIdentifier without extraParams.