summaryrefslogtreecommitdiff
path: root/bilibili/room_profile.go
blob: 0d703eefeed66b6fabb7d802d34a1e7e1cf8d77c (plain)
1
2
3
4
5
6
7
8
9
10
11
package bilibili

import (
	"fmt"
	"github.com/keuin/slbr/types"
)

func (b *Bilibili) GetRoomProfile(roomId types.RoomId) (resp types.RoomProfileResponse, err error) {
	url := fmt.Sprintf("https://api.live.bilibili.com/room/v1/Room/get_info?room_id=%d", roomId)
	return callGet[types.RoomProfileResponse](b, url)
}