我正在使用这个模块Openfire REST API
我编写了main.py导入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示例来创建聊天室并将用户添加到聊天室吗?
发布于 2020-05-06 06:41:11
参见github中的示例代码可能对您有帮助,这是Openfire RestAPI:https://github.com/seamus-45/openfire-cli的命令行接口
https://stackoverflow.com/questions/61628650
复制相似问题