Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRoomRealID ¶
Types ¶
type BiliVerify ¶
type DanmakuRequest ¶
type DanmuInfo ¶
type DanmuInfo struct {
Code int `json:"code"`
Message string `json:"message"`
Ttl int `json:"ttl"`
Data struct {
Group string `json:"group"`
BusinessId int `json:"business_id"`
RefreshRowFactor float64 `json:"refresh_row_factor"`
RefreshRate int `json:"refresh_rate"`
MaxDelay int `json:"max_delay"`
Token string `json:"token"`
HostList []struct {
Host string `json:"host"`
Port int `json:"port"`
WssPort int `json:"wss_port"`
WsPort int `json:"ws_port"`
} `json:"host_list"`
} `json:"data"`
}
DanmuInfo api https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id={}&type=0 response
func GetDanmuInfo ¶
type RoomInfo ¶
type RoomInfo struct {
Code int `json:"code"`
Msg string `json:"msg"`
Message string `json:"message"`
Data struct {
RoomId int `json:"room_id"`
ShortId int `json:"short_id"`
Uid int `json:"uid"`
NeedP2P int `json:"need_p2p"`
IsHidden bool `json:"is_hidden"`
IsLocked bool `json:"is_locked"`
IsPortrait bool `json:"is_portrait"`
LiveStatus int `json:"live_status"`
HiddenTill int `json:"hidden_till"`
LockTill int `json:"lock_till"`
Encrypted bool `json:"encrypted"`
PwdVerified bool `json:"pwd_verified"`
LiveTime int64 `json:"live_time"`
RoomShield int `json:"room_shield"`
IsSp int `json:"is_sp"`
SpecialType int `json:"special_type"`
} `json:"data"`
}
RoomInfo api https://api.live.bilibili.com/room/v1/Room/room_init?id={} response
func GetRoomInfo ¶
type SendDanmakuResp ¶
type SendDanmakuResp struct {
Code int `json:"code"`
Data struct {
ModeInfo struct {
Mode int `json:"mode"`
ShowPlayerType int `json:"show_player_type"`
Extra string `json:"extra"`
} `json:"mode_info"`
} `json:"data"`
Message string `json:"message"`
Msg string `json:"msg"`
}
func SendDanmaku ¶
func SendDanmaku(d *DanmakuRequest, v *BiliVerify) (*SendDanmakuResp, error)
SendDanmaku https://api.live.bilibili.com/msg/send
func SendDefaultDanmaku ¶
func SendDefaultDanmaku(roomID string, message string, verify *BiliVerify) (*SendDanmakuResp, error)
Click to show internal directories.
Click to hide internal directories.