API Reference
Routes
TCG

TCG API Reference

NameTypeDescription
basicInfoBasicInfoFetch basic info of the TCG game
cardListCardListFetch the list of cards in the TCG game
cardBackListCardBackListFetch the list of card backs in the TCG game
gameRecordGameRecordFetch the game record of the TCG game

BasicInfo

NameTypeDescription
cacheClientCache<TCGData>The cache for the basic info of the TCG game
fetch(uid: string, options?: FetchOptions): Promise<TCGData>functionFetch the basic info of the TCG game

CardList

NameTypeDescription
cacheClientCache<CardListData>The cache for the list of cards in the TCG game
fetch(uid: string, options?: CardListOptions): Promise<CardListData>functionFetch the list of cards in the TCG game

CardListOptions

Extend the BaseFetchOptions interface.

OptionTypeDescription
need_avatarboolean?Whether to fetch the avatar of the card. Default: true
need_actionboolean?Whether to fetch the action of the card. Default: true
need_statsboolean?Whether to fetch the stats of the card. Default: true
offsetnumber?The offset of the card list. Default: 0
limitnumber?The limit of the card list. Default: 32

CardBackList

NameTypeDescription
cacheClientCache<CardBackListData>The cache for the list of card backs in the TCG game
fetch(uid: string, options?: FetchOptions): Promise<CardBackListData>functionFetch the list of card backs in the TCG game

GameRecord

NameTypeDescription
cacheClientCache<TCGGameRecordData>The cache for the game record of the TCG game
fetch(uid: string, options?: BaseFetchOptions): Promise<TCGGameRecordData>functionFetch the game record of the TCG game