krapio
Library referenceClasses

TokenShopApi

per player shop state and the player's own custom skins (the editor's /skins)

Constructors

Constructor

new TokenShopApi(gapi, auth): TokenShopApi;

Parameters

ParameterType
gapiKrunkerClient
authRecord<string, string>

Returns

TokenShopApi

Methods

customSkin()

customSkin(skinId): Promise<CustomSkin>;

GET /skins/:id, one custom skin

Parameters

ParameterType
skinIdnumber

Returns

Promise<CustomSkin>


customSkins()

customSkins(query?): Promise<CustomSkinsPage>;

GET /skins, the player's custom skins

Parameters

ParameterType
query?CustomSkinsQuery

Returns

Promise<CustomSkinsPage>


ranked()

ranked(): Promise<RankedShop>;

GET /ranked/shop, with the player's purchase counts

Returns

Promise<RankedShop>


wildOffer()

wildOffer(): Promise<WildOffer>;

GET /shop/wild-offer, a 200 with {error} inside data when there is none

Returns

Promise<WildOffer>


wristband()

wristband(): Promise<Wristband>;

GET /krunkcup/wristband, the player's wristband skin and whether it was claimed

Returns

Promise<Wristband>

On this page