#

SUD

Description

  • Authorization room status change notification

Request Method

  • HTTPS
  • POST
  • Parameters are in JSON format and placed in the body

Request Parameters (Additional fields may be added, please ensure compatibility with the server when adding new fields)

Parameter Name Required Type Description Example
notify_id Yes string Notification ID 0795d77f85789da0eb387a5096
notify_time Yes string Timestamp of the notification in ms 1647834452408
app_id Yes string Application ID of the message receiver 1
notify_event Yes string Notification event sud.mg.merchant.auth.room.changed
data Yes AuthRoomChangedModel Notification data {}
AuthRoomChangedModel
Parameter Name Required Type Description Example
auth_secret Yes string Application authorization string d6089222f1db75211712
room_id Yes string Room ID 9009
mg_id Yes string Game ID 1490944230389182466
status Yes string Room status, enumeration value
WAITING: waiting,
PLAYING: playing,
CLOSE: room closed
PLAYING
changed_time Yes string Change timestamp (accurate to ms) 1647844976502
Message Signature

Signature Verification

Request Example

{
    "notify_id": "144884c98000100c-15da5e428a821000",
    "notify_time": "1664266669547",
    "app_id": "1461564080052506636",
    "notify_event": "sud.mg.merchant.auth.room.changed",
    "data": {
        "auth_secret": "d6089222f1db75211712",
        "room_id": "9009",
        "mg_id": "mgid01",
        "status": "PLAYUING",
        "changed_time": "1647844976502"
    }
}

Notification Response

Parameter Name Required Type Description Example
ret_code Yes int32 Return status code, 0 for successful notification, other error codes for failure 0
ret_msg Yes string Return message SUCCESS

Response Example

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

results matching ""

    No results matching ""