Method GetSummary
- Namespace
- GuildWars2.Hero.Accounts
- Assembly
- GW2SDK.dll
GetSummary(string?, MissingMemberBehavior, CancellationToken)
Retrieves information about the account associated with the access token, for example the account name, age, guild participations and so on. This endpoint is only accessible with a valid access token.
public Task<(AccountSummary Value, MessageContext Context)> GetSummary(string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(AccountSummary Value, MessageContext Context)>
A task that represents the API request.