Method GetAccountAchievementById
- Namespace
- GuildWars2.Hero.Achievements
- Assembly
- GW2SDK.dll
GetAccountAchievementById(int, string?, MissingMemberBehavior, CancellationToken)
Retrieves achievement progress on the account by its ID. This endpoint is only accessible with a valid access token.
public Task<(AccountAchievement Value, MessageContext Context)> GetAccountAchievementById(int achievementId, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
achievementId
intThe achievement ID.
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(AccountAchievement Value, MessageContext Context)>
A task that represents the API request.