Quickblox REST API for System Notification

 ̄綄美尐妖づ 提交于 2019-12-12 02:36:06

问题


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.



来源:https://stackoverflow.com/questions/37683983/quickblox-rest-api-for-system-notification

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!