Table of Contents

Method GetSharedInventory

Namespace
GuildWars2.Hero.Inventories
Assembly
GW2SDK.dll

GetSharedInventory(string?, MissingMemberBehavior, CancellationToken)

Retrieves the shared inventory of the account.

public Task<(Inventory Value, MessageContext Context)> GetSharedInventory(string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

accessToken string

An API key or subtoken.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(Inventory Value, MessageContext Context)>

A task that represents the API request.