Appearance
用户访问直播间推送
推送参数
其他默认推送参数文档,参考消息推送-使用说明
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
msg_type | 是 | string | 消息类型:event-事件 |
event | 是 | string | 事件类型 :visitRoom--用户访问直播间 |
data | 是 | object | 消息内容 |
data
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
room_id | 是 | string | 直播间id |
wechat_user_space_id | 是 | string | 用户ID |
name | 是 | string | 用户昵称 |
photo | 是 | string | 用户头像 |
third_wechat_info | 否 | array | 客户公众号下用户信息 |
third_user_info | 否 | object | 客户系统下用户信息 |
inviter_info | 否 | object | 邀请人信息 |
third_wechat_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
authorizer_appid | 是 | string | 客户公众号appid |
openid | 是 | string | 客户openid |
unionid | 否 | string | 客户unionid |
third_user_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
third_uuid | 是 | string | 客户系统用户ID |
third_attach | 是 | string | 客户系统用户附属信息。json字符串 |
inviter_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
wechat_user_space_id | 是 | string | 用户ID |
third_wechat_info | 否 | array | 客户公众号下用户信息 |
third_user_info | 否 | object | 客户系统下用户信息 |
推送示例
{
"key":"ny6aec68a94xxx",
"timestamp":"1699149777000",
"sign":"697a963c7768xxx",
"msg_id":"2177E51538CC00xxx",
"msg_type":"event",
"event":"visitRoom",
"push_msg_url":"https://xxx.nuoyun.tv/xxx",
"data":{
"room_id":"6897xxx",
"wechat_user_space_id":"20401xx",
"name":"小趴xx",
"photo":"https://nyfs-alpha.oss-cn-hangzhou.aliyuncs.com/Uploads/WxHeaxxxx",
"third_wechat_info":[
{
"authorizer_appid":"wxc277bd41d8xxx",
"openid":"oKFTf0SGJMuBSaQwBnxxx",
"unionid":"o8-ysvzW-BYxHbxxx"
}
],
"inviter_info":{
"wechat_user_space_id":"520xx"
}
}
}