AccountEndpoints - liljaba1337/r6-marketplace GitHub Wiki

GetBalance

int balance = await client.AccountEndpoints.GetBalance();

GetInventory

⚠️ This method also has an unrestricted version.

Options

Param Type Required Default Description
name string false Empty The name of the item to search for.
filters IEnumerable<Enum>? false null A collection of SearchTags.
sortBy SortBy false SortBy.PurchaseAvailaible The method of sorting.
sortDirection SortDirection false SortDirection.DESC The direction of sorting.
limit int false 40 The maximum number of items to return.
offset int false 0 The number of items to skip before returning results.
local Data.Local false Data.Local.en The language to return metadata in.

Returns

An IReadOnlyList of SellableItem instances or an empty list if nothing was found/you don't have access to the marketplace.

List<Enum> filters = new List<Enum>()
{
    r6_marketplace.Utils.SearchTags.Type.WeaponSkin,
    r6_marketplace.Utils.SearchTags.Weapon.AK_12,
};
IReadOnlyList<SellableItem> items = await client.AccountEndpoints.GetInventory("black ice", filters);

GetInventoryValue

Returns

An InventoryValue instance.

InventoryValue val = await client.AccountEndpoints.GetInventoryValue();

⚠️ **GitHub.com Fallback** ⚠️