是否可以使用 ejabberd REST API 更新房间标题(和其他选项)?
Is it possible to update room title (and other options) using ejabberd REST API?
我正在查看 Ejabberd 的管理员 API - https://docs.ejabberd.im/developer/ejabberd-api/admin-api/,有 API 到
- 创建房间
- create_room_with_opts
- destroy_room
- set_room_affiliations
- get_room_*(少数获得空间APIs)
但是没有更新房间选项的选项。有什么方法可以更新现有房间的房间标题和其他选项吗?
就在那里:)
https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#change-room-option
用法示例:
$ ejabberdctl get_room_options room1 conference.localhost
title
public true
moderated true
...
$ ejabberdctl change_room_option room1 conference.localhost title ABCD
$ ejabberdctl change_room_option room1 conference.localhost moderated false
$ ejabberdctl change_room_option room1 conference.localhost public false
$ ejabberdctl get_room_options room1 conference.localhost
title ABCD
public false
moderated false
...
我正在查看 Ejabberd 的管理员 API - https://docs.ejabberd.im/developer/ejabberd-api/admin-api/,有 API 到
- 创建房间
- create_room_with_opts
- destroy_room
- set_room_affiliations
- get_room_*(少数获得空间APIs)
但是没有更新房间选项的选项。有什么方法可以更新现有房间的房间标题和其他选项吗?
就在那里:)
https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#change-room-option
用法示例:
$ ejabberdctl get_room_options room1 conference.localhost
title
public true
moderated true
...
$ ejabberdctl change_room_option room1 conference.localhost title ABCD
$ ejabberdctl change_room_option room1 conference.localhost moderated false
$ ejabberdctl change_room_option room1 conference.localhost public false
$ ejabberdctl get_room_options room1 conference.localhost
title ABCD
public false
moderated false
...