在ejabberd api中,我可以填写用户,昵称,房间,但我怎样才能填充节点?有什么例子吗?谢谢。
POST / api / subscribe_room
{
"user": "aaaaa",
"nick": "bbbbb",
"room": "ccccc",
"nodes": "ddddd"
}
HTTP / 1.1 200好的 [ " AAAAA&#34 ;, " 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"]
}
答案 0 :(得分:1)
解释JSONAPI.org nodes属性填充如下:
nodes : "urn:xmpp:mucsub:nodes:messages,urn:xmpp:mucsub:nodes:affiliations"