提交工单
咨询集成、功能及报价等问题
Logs in to the GoChat backend service to get the user ID.
Rate limit: 10 requests / second.
POST/chat_room/loginapplication/json| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| nick_name | String | Yes | "Shawn" | User's nickname, a string with up to 15 characters. |
| avatar | String | Yes | "1" | Index of the user's profile picture. |
{
"nick_name":"Shawn",
"avatar":"1"
}
| Parameter | Type | Example | Description |
|---|---|---|---|
| uid | Int64 | 171171717 | User ID. |
| nick_name | String | "Shawn" | User's nickname. |
| avatar | String | "1" | Index of the user's profile picture. |
{
"ret": {
"code": 0,
"message": "succeed"
},
"data": {
"uid": 171171717,
"nick_name": "Shawn",
"avatar": "1"
}
}
| Return Code | Description |
|---|---|
| 80000 | This user name has been taken. |
| 80001 | Incorrect parameter. |
