用于系统通知的 Quickblox REST API [英] Quickblox REST API for System Notification

查看:29
本文介绍了用于系统通知的 Quickblox REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从电子邮件中复制.

我想知道,有没有办法在 REST API 中发送系统消息,就像 iOS API 一样.我在文档中尝试过系统通知",但它返回错误.

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.

下面是我发送到服务器的 REST 请求.我在发送此令牌之前使用令牌登录.

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

推荐答案

extraParams.moduleIdentifier - 参数名称错误

不能在参数名称中使用.

如果你想在extra_params中设置自定义参数,那么你需要设置参数moduleIdentifier而没有extraParams.

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

这篇关于用于系统通知的 Quickblox REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆