Method GetInventory
- Namespace
- GuildWars2.Hero.Inventories
- Assembly
- GW2SDK.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
characterName
stringA character name that belongs to the account associated with the access token.
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(Baggage Value, MessageContext Context)>
A task that represents the API request.