Method GetCharacterSummary
- Namespace
- GuildWars2.Hero.Accounts
- Assembly
- GW2SDK.dll
GetCharacterSummary(string, string?, MissingMemberBehavior, CancellationToken)
Retrieves a short summary of a character that belongs to the account associated with the access token. This endpoint is only accessible with a valid access token.
public Task<(CharacterSummary Value, MessageContext Context)> GetCharacterSummary(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<(CharacterSummary Value, MessageContext Context)>
A task that represents the API request.