How to access ejabberd admin api via HTTP?

前端 未结 2 1033
庸人自扰
庸人自扰 2021-01-05 18:05

I read about the doc https://docs.ejabberd.im/admin/api/

And I wonder how can I access those API via HTTP. I tried to access but it always 404.

2条回答
  •  难免孤独
    2021-01-05 18:49

    enable ejabberd_xmlrpc in ejabberd.yml file uncomment the following lines-

    ## To handle XML-RPC requests that provide admin credentials:
      ##
      ## - 
      ##   port: 4560
      ##   module: ejabberd_xmlrpc
      ##   maxsessions: 10
      ##   timeout: 5000
      ##   access_commands:
      ##     xmlrpc:
      ##       commands: all
      ##   options: []
    

    All XMLRPC are send to the following URL: http://host:4560/. for more detail check here

提交回复
热议问题