提交工单
咨询集成、功能及报价等问题
Joins a chat room.
Rate limit: 10 requests / second.
POST
/chat_room/login_room
application/json
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
uid | Int32 | Yes | 171171717 | User ID. |
room_id | String | Yes | "46466" | Room ID. |
{
"uid": 171171717,
"room_id":"123456"
}
Parameter | Type | Example | Description |
---|---|---|---|
room_id | String | "200113279" | Room ID. |
subject | String | "I love this game" | Room subject. |
create_time | Int64 | 1608186550647 | Creation time of the room, in milliseconds. |
creator_name | Int32 | "Shawn" | Name of the room creator. |
creator_id | String | "1608186550647" | User ID of the room creator. |
online_count | Int32 | 2 | Number of members currently in the room. |
on_stage_count | Int32 | 2 | Number of room members participating in the chat. |
{
"ret": {
"code": 0,
"message": "succeed"
},
"data":{
"room_id": "200113279",
"subject": "I love this game",
"create_time": 1608186550647,
"creator_name": "shawn",
"creator_id": 1608186550647,
"online_count": 1,
"on_stage_count": 1
}
}
Return Code | Description |
---|---|
10006 | Incorrect parameter. |
80012 | The user is offline. |