Library referenceClasses
AppInventoryApi
the player's items and balances; scope inventory:read
Constructors
Constructor
new AppInventoryApi(gapi, auth): AppInventoryApi;Parameters
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
auth | Record<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
| Parameter | Type |
|---|---|
query? | AppPageQuery |