我正在使用此模块https://github.com/seamus-45/openfire-restapi/blob/master/ofrestapi/muc.py
我写了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示例来创建聊天室并将用户添加到聊天室吗?
预先感谢!
请参阅github中的以下示例代码可能会帮助您,这是Openfire RestAPI的命令行界面:https://github.com/seamus-45/openfire-cli