#

Description
- Initializing the bullet screen game.
Request URL
Request Method
- Transfer protocol: HTTPS
- Request method: POST
- Parameters are passed in the request body in JSON format (see request example).
- Add the following to the request header: Content-Type: application/json;charset=utf-8
- Add the following to the request header: Authorization (Authentication request header)
Request Parameters
Parameter |
Required |
Type |
Description |
mg_id |
Yes |
string |
Game ID |
anchor_info |
Yes |
AnchorInfo |
Anchor information |
Parameter |
Required |
Type |
Description |
uid |
Yes |
string |
User ID |
nick_name |
Yes |
string |
User nickname |
avatar_url |
Yes |
string |
User avatar |
Request Example
{
"mg_id": "1554721242510114817",
"anchor_info": {
"uid": "60081",
"nick_name": "bob",
"avatar_url": "xxx"
}
}
Response Parameters
Parameter |
Required |
Type |
Description |
ret_code |
Yes |
int |
Response code |
ret_msg |
Yes |
string |
Response message |
data |
No |
BulletInitResp |
Response data |
Parameter |
Required |
Type |
Description |
room_code |
Yes |
string |
Room code (used for logging in to the game client) |
expire_at |
Yes |
int64 |
Expiration time (within the expiration time, it needs to be refreshed regularly to maintain the online status) |
Response Example
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"room_code": "xxxxxx",
"expire_at": 1691381114874
}
}