Room

Create Room

public String createRoom(String name, String topic, List<String> invitations)

Parameters:

Name
Type
Description
Required

name

string

room name

true

topic

string

room topic

false

invitations

string array

array of user ids to invite

false

Returns:

Name
Type
Description
Required

roomId

string

id of the new room

true

Invite User

public void inviteUser(String roomId, String userId, String reason)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

userId

string

user id

true

reason

string

invite reason

false

Returns: none

Kick User

public void kickUser(String roomId, String userId, String reason)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

userId

string

user id

true

reason

string

invite reason

false

Returns: none

Join Room

public void joinRoom(String roomID)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns: none

Leave Room

public void leaveRoom(String roomID)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns: none

Get Room Memebers

public List<Member> getRoomMembers(String roomID)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns:

Name
Type
Description
Required

Member.id

string

member user id

true

Member.display_name

string

member display name

true

Member.avatar_url

string

member avatar url

true

Last updated