【发布时间】:2018-04-27 11:33:42
【问题描述】:
组是使用 MUC 创建的,但我无法检索所有用户组。我已经做过研究,这已被弃用,建议使用 REST API。 REST API 未按预期工作。我无法连接到服务器。我添加了 REST API 插件。现在在我的 android 代码中,我设置了密钥,但无法连接到 localhost openfire 服务器。
需要帮助
【问题讨论】:
-
您在手机上得到的 REST API 的响应是什么?
-
我正在邮递员xxx.xxx.xxx.xxx:9090/plugins/restapi/v1/chatrooms 中尝试此网址。我设置了标题值“Content-Type”:“application/json”和“Authorization”:“MF9mRzGQKL3O5ipz”。这个密钥是我通过设置和检查密钥模式安装 REST API 插件后得到的。传递的参数是 naturalName、roomName、带值的描述。我得到的结果是状态:403 未授权。
标签: android xmpp openfire smack multiuserchat