【问题标题】:How to create a chat room and add users into the room in openfire using Python REST API如何使用 Python REST API 在 openfire 中创建聊天室并将用户添加到房间中
【发布时间】:2020-08-21 00:42:03
【问题描述】:

我正在使用这个模块Openfire REST API

我写main.py import muc.py

from ofrestapi.muc import Muc
m = Muc(host = 'http://desktop-oam4s7o:9090', secret = 'poYixzhOJsPmB4tB')
m.add_room(roomname = 'test', name = 'test', description = 'test')

但是失败了,我遇到了异常:

ofrestapi.exception.InvalidResponseException: 500

任何人都可以提供一些用于 MUC 服务的示例 Python 来创建聊天室并将用户添加到聊天室吗?

【问题讨论】:

    标签: python rest api xmpp openfire


    【解决方案1】:

    在 github 中查看此示例代码可能会对您有所帮助,这是 Openfire RestAPI 的命令行界面: https://github.com/seamus-45/openfire-cli

    【讨论】:

      猜你喜欢
      • 2015-03-29
      • 2018-11-06
      • 1970-01-01
      • 2016-11-27
      • 2015-12-26
      • 1970-01-01
      • 2016-11-27
      • 1970-01-01
      • 2016-08-21
      相关资源
      最近更新 更多