Table of Contents

Method GetBank

Namespace
GuildWars2.Hero.Banking
Assembly
GW2SDK.dll

GetBank(string?, MissingMemberBehavior, CancellationToken)

Retrieves the items in the account bank.

public Task<(Bank Value, MessageContext Context)> GetBank(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<(Bank Value, MessageContext Context)>

A task that represents the API request.