我正在使用这个模块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
任何人都可以使用一些Python for MUC服务示例来创建聊天室并将用户添加到聊天室中吗
在github中查看此示例代码可能会对您有所帮助,这是Openfire RestAPI的命令行界面: https://github.com/seamus-45/openfire-cli
相关问题 更多 >
编程相关推荐