krapio
Library referenceClasses

PublicShopApi

the shop's catalogue data; the wild offer and every purchase need the player's token

Constructors

Constructor

new PublicShopApi(gapi): PublicShopApi;

Parameters

ParameterType
gapiKrunkerClient

Returns

PublicShopApi

Methods

display()

display(displayId): Promise<ShopDisplay>;

GET /shop/displays/:id, display 1 is the front

Parameters

ParameterType
displayIdnumber

Returns

Promise<ShopDisplay>


displayByTag()

displayByTag(tag): Promise<ShopDisplay>;

GET /shop/displays?tag=, "premium" is what the menu asks for; without a tag the api answers 400

Parameters

ParameterType
tagstring

Returns

Promise<ShopDisplay>


lottery()

lottery(lotteryId): Promise<Lottery>;

GET /lottery/:id, id 1 is the running one; player_entries is 0 without a token

Parameters

ParameterType
lotteryIdnumber

Returns

Promise<Lottery>


spinWheels()

spinWheels(): Promise<SpinWheel[]>;

GET /spins/wheels, every wheel with its item pools and weights

Returns

Promise<SpinWheel[]>

On this page