Quickblox REST API for System Notification

2019-09-12 21:24发布

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条回答
甜甜的少女心
2楼-- · 2019-09-12 22:00

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.

查看更多
登录 后发表回答