Method GetAccountAchievementsByIds
- Namespace
- GuildWars2.Hero.Achievements
- Assembly
- GuildWars2.dll
GetAccountAchievementsByIds(IEnumerable<int>, string?, MissingMemberBehavior, CancellationToken)
Retrieves achievement progress on the account by their IDs. This endpoint is only accessible with a valid access token
public Task<(HashSet<AccountAchievement> Value, MessageContext Context)> GetAccountAchievementsByIds(IEnumerable<int> achievementIds, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
achievementIdsIEnumerable<int>The achievement IDs.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(HashSet<AccountAchievement> Value, MessageContext Context)>
A task that represents the API request.