从房间重新邀请被遗弃的用户

re-invite outcast user from room

有没有办法通过 API 重新邀请用户加入之前被抛弃的房间?

POST /create_room_with_opts
{
    "name": "testroompersistent", 
    "service": "foo", 
    "host": "bar" ,
    "options": {
                "title": "Super important meeting",
                "description": "This meeting is super important",
                "persistent": "true",
                "allow_user_invites": "true"
    }
}
POST /send_direct_invitation
{
  "name": "testroompersistent",
  "service": "foo",
  "password": "",
  "reason": "Check this out!",
  "users": "user@companyDomain.co.uk"
}
POST /set_room_affiliation
{
   "name": "testroompersistent",
    "service": "foo",
    "jid": "userJid",
    "affiliation": "outcast"
}
POST /send_direct_invitation
{
  "name": "testroompersistent",
  "service": "foo",
  "password": "",
  "reason": "Check this out!",
  "users": "user@companyDomain.co.uk"
}
POST /set_room_affiliation
{
   "name": "testroompersistent",
    "service": "foo",
    "jid": "userJid",
    "affiliation": "member"
}

我试过在邀请前后设置从属关系,但没有用。

我正在使用我从 /get_room_occupants 返回的 jid 来设置这个 jid 后面有“/[numbers]”的从属关系,我认为它没有正确设置从属关系。我得到 0=success 返回,但它一定没有正常工作。

I have changed the jid to exclude the random numbers I got back from /get_room_occupants. Thanks @badlop for taking the time to respond.