从房间重新邀请被遗弃的用户
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.
有没有办法通过 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.