Skip to content

fetchRoomGiftsRoute

const fetchRoomGiftsRoute: HttpRoute<RoomGiftsRouteParams, any>

Defined in: src/lib/web/routes/base/fetch-room-gifts.ts:17

Fetches the list of gifts available in a TikTok LIVE room directly from TikTok’s webcast gift/list/ endpoint. The request must be signed for TikTok to return data. If roomId is not provided, the roomId currently set on the webClient is used.

webClient

The HTTP client instance to use for the request.

roomId

The ID of the room whose gift list to fetch. Optional if the webClient has a roomId context.