krapio
Library referenceClasses

AppInventoryApi

the player's items and balances; scope inventory:read

Constructors

Constructor

new AppInventoryApi(gapi, auth): AppInventoryApi;

Parameters

ParameterType
gapiKrunkerClient
authRecord<string, string>

Returns

AppInventoryApi

Methods

currencies()

currencies(): Promise<AppCurrency[]>;

GET /app/v1/inventory/currencies (inventory:read), the balances; KR and Junk always, others only when held

Returns

Promise<AppCurrency[]>


items()

items(query?): Promise<AppPage<AppItem>>;

GET /app/v1/inventory/items (inventory:read), what the in-game inventory shows; copies listed on the market are left out

Parameters

ParameterType
query?AppPageQuery

Returns

Promise<AppPage<AppItem>>

On this page