Method GetCharactersByNames
- Namespace
- GuildWars2.Hero.Accounts
- Assembly
- GW2SDK.dll
GetCharactersByNames(IEnumerable<string>, string?, MissingMemberBehavior, CancellationToken)
Retrieves the details of characters that belongs to the account associated with the access token. This endpoint is only accessible with a valid access token.
public Task<(HashSet<Character> Value, MessageContext Context)> GetCharactersByNames(IEnumerable<string> characterNames, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
characterNames
IEnumerable<string>Character names 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.