我正在经历https://docs.ejabberd.im/developer/extending-ejabberd/architecture/,它讨论了通过REST API进行名册管理。试图找到要使用的模块以及REST API应该实现哪种API合同。能否请我指向一些博客/教程,讨论如何实现这一目标?
感谢与问候 拉玛
答案 0 :(得分:0)
以及REST API应该实现哪种API合同。能否请我指向一些博客/教程,讨论如何实现这一目标?
有几个与花名册相关的命令:
$ ejabberdctl help --tags roster
Available commands with tag roster:
add_rosteritem localuser localhost user host nick group subs
Add an item to a user's roster (supports ODBC)
delete_rosteritem localuser localhost user host
Delete an item from a user's roster (supports ODBC)
get_roster user host
Get roster of a local user
process_rosteritems action subs asks users contacts
List/delete rosteritems that match filter
push_alltoall host group
Add all the users to all the users of Host in Group
push_roster file user host
Push template roster from file to a user
push_roster_all file
Push template roster from file to all those users
您可以在以下位置找到有关这些命令的更多详细信息:
https://docs.ejabberd.im/developer/ejabberd-api/admin-api/
试图找到要使用的模块
所有这些命令都在mod_admin_extra中实现。因此,您只需在ejabberd.yml中启用此模块,命令便可以执行。