直播信息获取

请求地址

GET /api/rooms
字段 是否可选 类型 描述
Content-Type string application/x-www-form-urlencoded

请求参数

字段 是否可选 类型 描述
liveRoomId int 房间ID
liveUri String 房间链接

响应参数

字段 类型 描述
code int 响应码
msg String 提示消息(根据language参数,选择语言返回)
data json 响应数据

成功返回

http/1.1 200 OK
{
    "data":{
        "funcMap":"{\"room_stat_data_clear\":true,\"video_download\":true,\"live_share\":true,\"special_company\":false,\"multi_language\":true,\"vod_multi_resolution\":false,\"api_permission\":true,\"menu_customize\":true,\"auth_3rd\":true,\"white_list\":true,\"wx_login\":true,\"online_control\":true,\"custom_domain\":true,\"send_sms\":false,\"data_export\":true,\"web_sdk\":true}",
        "preventTranscribeSwitch":false,
        "signUpInfo":{"id":22117,"companyId":40162,"liveRoomId":32307,"signUpSwitch":false,"title":"1","imageUrl":"https://static-live.hst.com/live/upload/signup/default.png","desc":"2","context":"[{\"type\":\"NICKNAME\",\"name\":\"昵称\",\"must\":true}]","createTime":1627639183000,"updateTime":1631590870000},
        "wxSwitch":false,
        "room":{"id":32307,"liveName":"111","startTime":1622612808000,"endTime":1622623608000,"maxUserCount":0,"verifyMode":0,"status":1,"confRoomId":83768,"confRoomName":"123","liveUri":"FST4WKmrY","liveInfo":"","enLiveInfo":"","companyId":40162,"depId":52251,"departmentManagerId":null,"depName":"will直播测试","creationTime":1622612851000,"creatorId":1376896,"pushStreamType":"CLIENT","watchType":0,"pushId":"1622612851174","anchorName":"1111","logoUrl":"https://static-live.haoshitong.com/live/static/logo/hst.jpg","coverUrl":"https://static-live.haoshitong.com/live/upload/logo/2021-07-12/7f4e89e3-b813-403a-980c-b82cd517556a-logo.png","liveRecordCoverType":"CUSTOM","liveRecordCoverUrl":"https://static-live.haoshitong.com/live/upload/cover/2021-07-12/5ed847a2-46cb-4456-9c02-65a06df30a56-cover.png","countdownSwitch":false,"autoOpenSwitch":true,"contactsSwitch":false,"pushUri":"/40162/32307-1622612851174"},
        "menuInfoList":[{"companyId":40162,"createTime":1622612851000,"liveRoomId":32307,"menuId":67565,"updateTime":1622612851000,"title":"直播信息","type":"BASIC_INFO","order":1},{"companyId":40162,"createTime":1622612851000,"liveRoomId":32307,"menuId":67566,"updateTime":1622612851000,"title":"聊天互动","type":"CHAT","order":2},{"companyId":40162,"createTime":1626686821000,"context":"","liveRoomId":32307,"menuId":145221,"updateTime":1626686821000,"title":"新建菜单","type":"SHARE_RANK","order":3}],
        "onlineControlInfo":{"id":null,"liveRoomId":null,"show":true,"showType":1,"baseNum":null,"multiple":null},
        "posterInfo":null,
        "publicAccountInfo":null,
        "shiftSwitch":false,
        "multiLanguageSwitch":false,
        "roomOnlineStatus":true,
        "afficheInfo":{"companyId":null,"liveRoomId":32307,"content":null,"status":0},
        "advertInfo":null
    },
    "code":0,
    "msg":"success"
}

失败返回

http/1.1 200 OK
{
"code": 1,
"msg": "xxx"
}

results matching ""

    No results matching ""