Method GetInventory
- Namespace
- GuildWars2.Hero.Inventories
- Assembly
- GuildWars2.dll
GetInventory(string, string?, MissingMemberBehavior, CancellationToken)
Retrieves the bags equipped by a character on the account.
public Task<(Baggage Value, MessageContext Context)> GetInventory(string characterName, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
characterNamestringA character name that belongs to the account associated with the access token.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(Baggage Value, MessageContext Context)>
A task that represents the API request.