Method GetSharedInventory
- Namespace
- GuildWars2.Hero.Inventories
- Assembly
- GuildWars2.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
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(Inventory Value, MessageContext Context)>
A task that represents the API request.