1

在 ejabberd api 中,我可以填充用户、昵称、房间,但我如何填充节点?有没有例子。谢谢你。

发布 /api/subscribe_room

{
  "user": "aaaaa",
  "nick": "bbbbb",
  "room": "ccccc",
  "nodes": "ddddd"
}

HTTP/1.1 200 OK [ "aaaaa", "bbbbb" ]

我的例子:

{
  "user":"muuser",
  "nick":"ccccdd",
  "room":"myRoom",
  "nodes": ["urn:xmpp:mucsub:nodes:presence","urn:xmpp:mucsub:nodes:messages","urn:xmpp:mucsub:nodes:affiliations","urn:xmpp:mucsub:nodes:subject", "urn:xmpp:mucsub:nodes:config","urn:xmpp:mucsub:nodes:system"] 
}
4

1 回答 1

1

正如这里所解释的, 节点属性是这样填充的:

nodes : "urn:xmpp:mucsub:nodes:messages,urn:xmpp:mucsub:nodes:affiliations"
于 2017-06-22T14:09:51.903 回答