blob: e3cfbc0d339e5884c208c83a435e9229c7c98610 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package bilibili
import (
"fmt"
"github.com/keuin/slbr/types"
)
func (b Bilibili) GetDanmakuServerInfo(roomId types.RoomId) (resp types.DanmakuServerInfoResponse, err error) {
url := fmt.Sprintf("https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id=%d&type=0", roomId)
return callGet[types.DanmakuServerInfoResponse](b, url)
}
|