Table of Contents

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 string

A character name that belongs to the account associated with the access token.

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<(Baggage Value, MessageContext Context)>

A task that represents the API request.