#

SUD

Description

  • Sending commands for 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)
  • Add the following to the request header: RequestId (A unique identifier for each request)

Request Header

Header Name Header Value
RequestId A unique identifier for each request
Authorization Sud-Auth <params>, see Authentication request header implementation method

Request Parameters

Parameter Required Type Description
mg_id Yes string Game ID
anchor_id Yes string Anchor ID
command Yes BulletCommandReq Command
  • BulletCommandReq
Parameter Required Type Description
opcode Yes string Command opcode (specific to different games)
payload Yes PayloadInfo Operation payload (specific to different games)

Request Example

  • King of War - Send bullet screen message
{
    "mg_id": "1554721242510114817",
    "anchor_id": "68001",
    "command": {
        "opcode": "2",
        "payload": {
            "content_code": "6",
            "user_info": {
                "uid": "1",
                "nick_name": "fans1",
                "avatar_url": "xxx",
                "gender": "mela"
            }
        }
    }
}

Response Parameters

  • BaseResp
Parameter Required Type Description
ret_code Yes int Response code
ret_msg Yes string Response message

Response Example

{
    "ret_code": 0,
    "ret_msg": "success"
}

results matching ""

    No results matching ""