Method GetWallet
- Namespace
- GuildWars2.Hero.Wallet
- Assembly
- GuildWars2.dll
GetWallet(string?, MissingMemberBehavior, CancellationToken)
Retrieves the amount of currency in the wallet of the account associated with the access token. This endpoint is only accessible with a valid access token.
public Task<(HashSet<CurrencyAmount> Value, MessageContext Context)> GetWallet(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<(HashSet<CurrencyAmount> Value, MessageContext Context)>
A task that represents the API request.