Skip to content

TikTok 礼物事件

返回数据字段说明

json
 {
  "common": {
    "method": "WebcastGiftMessage", // 礼物方法
    "msgId": "7372402774682061598", // 消息ID
    "roomId": "7372389016907369262",  // 房间ID
    "createTime": "1716521304049",  // 消息创建时间
    "isShowMsg": true,
    "describe": "🍊🍊🍊🍊johnny🍊🍊🍊🍊: gifted the host 17 Doughnut", // 礼物说明
    "foldType": "1",
    "anchorFoldType": "2",
    "priorityScore": "1000",
    "diffSei2absSecond": "4",
    "anchorFoldDuration": "2"
  },
  "giftId": "5879", // 礼物ID 注意:需要用礼物ID去查礼物详细🙏
  "fanTicketCount": "150",
  "groupCount": "1",  // 礼物组数
  "repeatCount": "17",  // 礼物数
  "comboCount": "17",
  "user": {
    "id": "7320463830013723690",  // 用户ID
    "nickName": "🍊🍊🍊🍊johnny🍊🍊🍊🍊", // 用户昵称
    "secUid": "MS4wLjABAAAA7HrInEQdaMQK2iU_RnSCZbZpZ3l-Yb88AIl952Ln209vZtkOjR5Qz0bpCN6MzGxx" // TikTok 用户标识
  },
  "groupId": "1716521300647",
  "roomFanTicketCount": "150",
  "toUserIdsList": [
    "8",
    "1",
    "24",
    "1",
    "32",
    "1",
    "40",
    "1"
  ],
  "forceDisplayEffects": "1"
}
 {
  "common": {
    "method": "WebcastGiftMessage", // 礼物方法
    "msgId": "7372402774682061598", // 消息ID
    "roomId": "7372389016907369262",  // 房间ID
    "createTime": "1716521304049",  // 消息创建时间
    "isShowMsg": true,
    "describe": "🍊🍊🍊🍊johnny🍊🍊🍊🍊: gifted the host 17 Doughnut", // 礼物说明
    "foldType": "1",
    "anchorFoldType": "2",
    "priorityScore": "1000",
    "diffSei2absSecond": "4",
    "anchorFoldDuration": "2"
  },
  "giftId": "5879", // 礼物ID 注意:需要用礼物ID去查礼物详细🙏
  "fanTicketCount": "150",
  "groupCount": "1",  // 礼物组数
  "repeatCount": "17",  // 礼物数
  "comboCount": "17",
  "user": {
    "id": "7320463830013723690",  // 用户ID
    "nickName": "🍊🍊🍊🍊johnny🍊🍊🍊🍊", // 用户昵称
    "secUid": "MS4wLjABAAAA7HrInEQdaMQK2iU_RnSCZbZpZ3l-Yb88AIl952Ln209vZtkOjR5Qz0bpCN6MzGxx" // TikTok 用户标识
  },
  "groupId": "1716521300647",
  "roomFanTicketCount": "150",
  "toUserIdsList": [
    "8",
    "1",
    "24",
    "1",
    "32",
    "1",
    "40",
    "1"
  ],
  "forceDisplayEffects": "1"
}

礼物信息查询

giftId 与礼物信息匹配方法

gifts.png

👉 TikTok 字段说明

其它方法类型的返回数据如果没有说明可联系技术补充~